login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A099767 Number of n-digit palindromes in base n. 0
1, 6, 12, 100, 180, 2058, 3584, 52488, 90000, 1610510, 2737152, 57921708, 97883968, 2392031250, 4026531840, 111612119056, 187339329792, 5808378560022, 9728000000000 (list; graph; refs; listen; history; internal format)
OFFSET

2,2

FORMULA

a(n) = (n - 1)*n^([(n + 1)/2] - 1) where [] is the greatest integer function

EXAMPLE

a(3) = 6 because there are 6 3-digit palindromes in base 3, namely 101, 111, 121, 202, 212, 222.

MATHEMATICA

(n - 1)*n^(Floor[(n + 1)/2] - 1) /. n -> Range[2, 20]

CROSSREFS

Sequence in context: A181597 A002898 A003613 * A191462 A080450 A144760

Adjacent sequences:  A099764 A099765 A099766 * A099768 A099769 A099770

KEYWORD

easy,nonn

AUTHOR

Anonymous, Nov 11 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 19:19 EST 2012. Contains 205945 sequences.