Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A048269
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A048269 First palindrome greater than n+2 in bases n+2 and n. +0
2
5, 26, 21, 24, 154, 40, 121, 60, 181, 84, 253, 112, 337, 144, 433, 180, 541, 220, 661, 264, 793, 312, 937, 364, 1093, 420, 1261, 480, 1441, 544, 1633, 612, 1837, 684, 2053, 760, 2281, 840, 2521, 924, 2773, 1012, 3037, 1104, 3313, 1200, 3601, 1300, 3901 (list; graph; listen)
OFFSET

2,1

COMMENT

a(2), a(3), a(4) and a(6) must be found explicitly.

FORMULA

n even and n >= 8: a(n) = n^2+(n/2+3)n+1 (which is (1 n/2+3 1) in base n and (1 n/2-2 1) in base n+2).

n odd and n >= 5: a(n) = (n+3)/2*n+(n+3)/2 (which is ((n+3)/2 (n+3)/2) in base n and ((n+1)/2 (n+1)/2)) in base n+2).

EXAMPLE

a(15)= (15+3)/2*15+(15+3)/2=144, which is (99) in base 15 and (88) in base 17

MATHEMATICA

Do[ k = n + 3; While[ RealDigits[ k, n + 2 ][[ 1 ] ] != Reverse[ RealDigits[ k, n + 2 ][[ 1 ] ] ] || RealDigits[ k, n ][[ 1 ] ] != Reverse[ RealDigits[ k, n ][[ 1 ] ] ], k++ ]; Print[ k ], {n, 2, 50} ]

CROSSREFS

Cf. A048268.

Sequence in context: A060063 A106295 A057688 this_sequence A073069 A042281 A041625

Adjacent sequences: A048266 A048267 A048268 this_sequence A048270 A048271 A048272

KEYWORD

nonn,easy,base

AUTHOR

Ulrich Schimke (ulrschimke(AT)aol.com)

EXTENSIONS

More terms from Robert G. Wilson v (rgwv(AT)rgwv.com), Aug 15 2000

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 27 14:50 EST 2009. Contains 167570 sequences.


AT&T Labs Research