OFFSET
2,1
COMMENTS
Index at which first occurrence of n occurs in A016026 when the palindrome is multidigit. Only the first two terms of A016026 are single-digit palindromes. - Robert G. Wilson v, Dec 22 2021
LINKS
Robert G. Wilson v, Table of n, a(n) for n = 2..10000 (first 441 terms from Robert Israel).
EXAMPLE
From Robert G. Wilson v, Dec 22 2021: (Start)
a(2) = 3 since A016026(3) = 2;
a(3) = 4 since A016026(4) = 3;
a(4) = 25 since A016026(25) = 4; etc. (End)
MAPLE
N:= 100:
f:= proc(m) local k, L;
for k from 2 to m do
L:= convert(m, base, k);
if L = ListTools:-Reverse(L) then return k fi
od;
FAIL
end proc:
V:= Array(2..N):
count:= 0:
for m from 3 while count < N-1 do
v:= f(m);
if v = FAIL or v > N then next fi;
if V[v] = 0 then count:= count+1; V[v]:= m;
fi
od:
convert(V, list); # Robert Israel, Apr 08 2019
MATHEMATICA
fpb = Compile[{{n, _Integer}}, Module[{b = 2, idn}, While[ Reverse[idn = IntegerDigits[n, b]] != idn, b++]; b]]; k = 3; t[_] := 0; While[k < 2200, a = fpb@ k; If[ t[a] == 0, t[a] = k]; k++]; t@# & /@ Range[2, 53] (* Robert G. Wilson v, Dec 22 2021 *)
CROSSREFS
KEYWORD
easy,base,nonn
AUTHOR
Naohiro Nomoto, Dec 06 2001
EXTENSIONS
Definition edited by N. J. A. Sloane, Apr 08 2019
STATUS
approved