|
Search: id:A029966
|
|
|
| A029966 |
|
Palindromic in bases 11 and 10. |
|
+0 19
|
|
| 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 232, 343, 454, 565, 676, 787, 898, 909, 26962, 38183, 40504, 49294, 52825, 63936, 75157, 2956592, 2968692, 3262623, 3274723, 3286823, 3298923, 3360633, 3372733, 4348434, 4410144, 4422244, 4581854
(list; graph; listen)
|
|
|
OFFSET
|
1,3
|
|
|
LINKS
|
P. De Geest, Palindromic numbers beyond base 10
|
|
MATHEMATICA
|
NextPalindrome[n_] := Block[{l = Floor[ Log[10, n] + 1], idn = IntegerDigits[n]}, If[ Union[idn] == {9}, Return[n + 2], If[l < 2, Return[n + 1], If[ FromDigits[ Reverse[ Take[idn, Ceiling[l/2]] ]] FromDigits[ Take[idn, -Ceiling[l/2]]], FromDigits[ Join[ Take[idn, Ceiling[l/2]], Reverse[ Take[idn, Floor[l/2]] ]]], idfhn = FromDigits[ Take[idn, Ceiling[l/2]]] + 1; idp = FromDigits[ Join[ IntegerDigits[idfhn], Drop[ Reverse[ IntegerDigits[idfhn]], Mod[l, 2]] ]]] ]]]; palQ[n_Integer, base_Integer] := Block[{idn = IntegerDigits[n, base]}, idn == Reverse[idn]]; l = {0}; a = 0; Do[a = NextPalindrome[a]; If[ palQ[a, 12], AppendTo[l, a]], {n, 100000}]; l (from Robert G. Wilson v Sep 30 2004)
|
|
CROSSREFS
|
Cf. A007632, A007633, A029961, A029962, A029963, A029964, A029804, A029965, A029967, A029968, A029969, A029970, A029731, A097855, A099165.
Sequence in context: A002998 A137667 A117954 this_sequence A085134 A004882 A046469
Adjacent sequences: A029963 A029964 A029965 this_sequence A029967 A029968 A029969
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
Patrick De Geest (pdg(AT)worldofnumbers.com)
|
|
|
Search completed in 0.019 seconds
|