|
Search: id:A099165
|
|
|
| A099165 |
|
Palindromic in bases 10 and 32. |
|
+0 13
|
|
| 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, 66, 99, 363, 858, 1441, 2882, 5445, 6886, 9449, 15951, 19891, 21012, 29692, 32223, 54945, 369963, 477774, 564465, 585585, 609906, 672276, 717717, 780087, 804408, 912219, 1251521, 2639362, 3825283, 4236324
(list; graph; listen)
|
|
|
OFFSET
|
0,3
|
|
|
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, 32], AppendTo[l, a]], {n, 10000}]; l
|
|
CROSSREFS
|
Cf. A007632, A007633, A029961, A029962, A029963, A029964, A029804, A029965, A029966, A029967, A029968, A029969, A029970, A029731, A097855.
Adjacent sequences: A099162 A099163 A099164 this_sequence A099166 A099167 A099168
Sequence in context: A032573 A117054 A082208 this_sequence A117055 A117056 A082207
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
Robert G. Wilson v (rgwv(AT)rgwv.com), Sep 30 2004
|
|
|
Search completed in 0.002 seconds
|