login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A165932 Positive integers N such that for some integer d => 2 this number is a d-digit palindrome base 10 as well as a d-digit palindrome for some base b different from 10. 2

%I #29 Aug 03 2022 11:32:17

%S 22,33,44,55,66,77,88,99,111,121,141,171,181,191,222,232,242,282,292,

%T 313,323,333,343,353,373,414,444,454,464,484,494,505,545,555,565,575,

%U 595,616,626,646,656,666,676,686,717,727,737,757,767,787,797,818,828

%N Positive integers N such that for some integer d => 2 this number is a d-digit palindrome base 10 as well as a d-digit palindrome for some base b different from 10.

%C From table page 4 ff of Goins. The semiprime 9986831781362631871386899 = 2048903657 * 4874232005610907 is the largest of the 203 positive integers N such that for some integer d => 2 this number is a d-digit palindrome base 10 as well as a d-digit palindrome for some base b different from 10. Curiously, the smallest such integer, 22, and the number of solutions 203 = 7 * 29, are also semiprimes.

%C a(203) = 9986831781362631871386899 is the last term in the sequence.

%H Robert G. Wilson v, <a href="/A165932/b165932.txt">Table of n, a(n) for n = 1..203</a>

%H Edray Herber Goins, <a href="http://arxiv.org/abs/0909.5452">Palindromes in Different Bases: A Conjecture of J. Ernest Wilkins</a>, arXiv:0909.5452 [math.NT], Sep 29, 2009.

%H Edray Herber Goins, <a href="http://www.emis.de/journals/INTEGERS/papers/j55/j55.Abstract.html">Palindromes in different bases: a conjecture of J. Ernest Wilkins</a>, Integers, Vol. 9 (2009), A55.

%t palQ[n_Integer, base_Integer] := Module[{idn = IntegerDigits[n, base]}, idn == Reverse@ idn]; gen[n_] := Block[{id = IntegerDigits@ n, insert = {{}, {0}, {1}, {2}, {3}, {4}, {5}, {6}, {7}, {8}, {9}}}, FromDigits@ Join[id, #, Reverse@ id] & /@ insert]; fQ[n_] := Block[{e = Floor@ Log10@ n + 1}, lmtl = Ceiling[n^(1/e)]; lmth = Floor[n^(1/(e - 1))]; palQ[n, 10] && Count[Table[palQ[n, i], {i, lmtl, lmth}], True] > 1]; k = 1; lst = {}; While[k < 10^5, a = Select[gen@k, fQ]; If[a != {}, AppendTo[lst, a]; Print@ a; lst = Sort@ Flatten@ lst]; k++ ]

%o (PARI) isok2(k, b) = my(d=digits(k, b)); if ((#d >=2) && (Vecrev(d)==d), return (#d));

%o isok(k) = my(n); if (n=isok2(k, 10), for (b=2, sqrtnint(k, n-1), if ((b != 10) && (n==isok2(k, b)), return(1)););); \\ _Michel Marcus_, Aug 03 2022

%Y Subsequence of A002113.

%Y Cf. A173551.

%K nonn,base,fini,full

%O 1,1

%A _Jonathan Vos Post_, Sep 30 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 22:17 EDT 2024. Contains 371963 sequences. (Running on oeis4.)