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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A192438 Number of bases <= n in which n has no digits exceeding 9. 0
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 25, 26, 26, 26, 27, 27, 27, 28, 28, 28, 29, 28, 29, 30, 29, 29, 31, 30, 30, 31, 31, 31, 31, 31, 32, 33, 31, 31, 34, 33, 32, 33, 33 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Table of n, a(n) for n=1..64.

EXAMPLE

30 is 1E, 1D, 1C, 1B, 1A in bases 16 through 20, while in other bases it uses only decimal digits. Thus a(30) = 30 - 5 = 25.

PROG

(PARI) a(n)=my(m, k); 1+sum(b=2, n, k=n; m=1; while(k, if(k%b>9, m=0; break); k\=b); m)

CROSSREFS

Sequence in context: A107602 A090322 A030066 * A081331 A080686 A036218

Adjacent sequences:  A192435 A192436 A192437 * A192439 A192440 A192441

KEYWORD

nonn,base

AUTHOR

Vladimir Shevelev and Charles R Greathouse IV, Jul 01 2011

STATUS

approved

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 May 25 07:59 EDT 2013. Contains 225646 sequences.