The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A333016 Smallest palindromic number >= 2^n. 2
1, 2, 4, 8, 22, 33, 66, 131, 262, 515, 1111, 2112, 4114, 8228, 16461, 32823, 65556, 131131, 262262, 524425, 1049401, 2097902, 4194914, 8388838, 16777761, 33555533, 67111176, 134222431, 268444862, 536878635, 1073773701, 2147557412, 4294994924, 8589999858, 17179897171 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
a(n) = A262038(A000079(n)). - Michel Marcus, May 04 2020
EXAMPLE
a(10) = 1111, because 2^10 = 1024 and 1111 is the smallest palindromic number >= 1024.
MATHEMATICA
spn[n_]:=Module[{k=2^n}, While[!PalindromeQ[k], k++]; k]; Array[spn, 40, 0] (* Harvey P. Dale, Jun 12 2023 *)
PROG
(PARI) a(n) = for(k=2^n, oo, if(Vecrev(v=digits(k))==v, return(k))); \\ Jinyuan Wang, Mar 05 2020
CROSSREFS
Sequence in context: A262345 A192149 A115778 * A295628 A027713 A155765
KEYWORD
nonn,base
AUTHOR
Eder Vanzei, Mar 05 2020
EXTENSIONS
a(9) corrected by and more terms from Jinyuan Wang, Mar 05 2020
STATUS
approved

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 May 21 12:47 EDT 2024. Contains 372736 sequences. (Running on oeis4.)