Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A095777
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A095777 Number of terms generated for n in increasing bases starting at 2 until the last term with only decimal digits is reached, or 0 where the number of such terms would be infinite (n<10). +0
10
0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 9, 10, 10, 11, 11, 12, 12, 13, 13, 14, 14, 9, 15, 10, 10, 11, 11, 11, 12, 12, 12, 13, 9, 13, 14, 10, 10, 15, 11, 11, 11, 12, 12, 9, 12, 13, 13, 10, 10, 14, 14, 11, 11, 11, 9, 12, 12, 12, 12, 10, 10, 13, 13, 13, 11 (list; graph; listen)
OFFSET

1,10

EXAMPLE

a(30)=14 because 30 can be expressed in 14 successive bases (that is, bases 2 through 15) with no non-decimal digits as follows: 11110, 1010, 132, 110, 50, 42, 36, 33, 30, 28, 26, 24, 22, 20. In base 16, 30 is 1A.

MAPLE

S := []; for n from 1 to 200 do; if 1>0 then; ct := 0; ok := true; b := 2; if (n>9) then; while ok=true do; L := convert(n, base, b); for e in L while ok=true do; if (e > 9) then ok:=false; fi; od; if ok=true then; ct := ct + 1; b := b + 1; fi; od; fi; S := [op(S), ct]; fi; od; S;

CROSSREFS

Sequence in context: A063543 A096166 A078548 this_sequence A004498 A020723 A107043

Adjacent sequences: A095774 A095775 A095776 this_sequence A095778 A095779 A095780

KEYWORD

base,nonn

AUTHOR

Chuck Seggelin (seqfan(AT)plastereddragon.com), Jun 05 2004

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 August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research