OFFSET
1,5
COMMENTS
a(1) = 1 by convention, which makes this sequence different from A135551.
Index of first occurrence of k in A037183. - Robert G. Wilson v, Oct 27 2014
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 1..1000
MATHEMATICA
f = Compile[{{n, _Integer}}, Module[{b = 2, c = Floor@ If[ IntegerQ@ Sqrt[n + 1], -1, 0], idn, s = Floor@ Sqrt[n + 1] - 1}, c = c + Count[ Mod[n, Range@ s], 0]; s = s + 2; While[b < s, If[ Reverse[idn = IntegerDigits[n, b]] == idn, c++]; b++]; c]]; f[1] = 1; Array[f, 105] (* Robert G. Wilson v, May 05 2025 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Naohiro Nomoto, Dec 02 2001
STATUS
approved
