Search: id:A029966 Results 1-1 of 1 results found. %I A029966 %S A029966 0,1,2,3,4,5,6,7,8,9,232,343,454,565,676,787,898,909,26962,38183, %T A029966 40504,49294,52825,63936,75157,2956592,2968692,3262623,3274723, %U A029966 3286823,3298923,3360633,3372733,4348434,4410144,4422244,4581854 %N A029966 Palindromic in bases 11 and 10. %H A029966 P. De Geest, Palindromic numbers beyond base 10 %t A029966 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) %Y A029966 Cf. A007632, A007633, A029961, A029962, A029963, A029964, A029804, A029965, A029967, A029968, A029969, A029970, A029731, A097855, A099165. %Y A029966 Sequence in context: A002998 A137667 A117954 this_sequence A085134 A004882 A046469 %Y A029966 Adjacent sequences: A029963 A029964 A029965 this_sequence A029967 A029968 A029969 %K A029966 nonn,base %O A029966 1,3 %A A029966 Patrick De Geest (pdg(AT)worldofnumbers.com) Search completed in 0.001 seconds