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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A038809 a(n) is the number of ways to write n in bases 2-10 such that the digit k-1 appears in the representation in base k. 0
0, 1, 2, 2, 2, 3, 3, 4, 3, 3, 1, 4, 2, 3, 4, 4, 2, 4, 2, 5, 4, 3, 3, 6, 3, 2, 3, 3, 2, 6, 3, 4, 3, 3, 5, 5, 1, 1, 2, 5, 1, 4, 3, 4, 6, 5, 5, 7, 5, 5, 3, 3, 3, 5, 4, 5, 4, 4, 4, 7, 4, 4, 6, 4, 3, 3, 3, 4, 3, 6, 4, 7, 4, 4, 4, 4, 5, 5, 4, 7, 3, 1, 1, 5, 2, 1, 2, 4, 2, 6, 3, 4, 5, 4, 5, 8, 5, 5, 5, 5, 3, 4, 4, 6, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Table of n, a(n) for n=0..104.

EXAMPLE

a(11)=4 since 11 = 15 (base 6) = 23 (base 4) = 102 (base 3) = 1011 (base 2).

PROG

(PARI) a(n) =  {nb = 0; for (b=2, 10, if (n, digs = digits(n, b), digs = [0]); for (i=1, #digs, if (digs[i] == b-1, nb++; break; ); ); ); return (nb); }\\ Michel Marcus, Jul 14 2013

CROSSREFS

Sequence in context: A064822 A238337 A104484 * A078342 A177903 A107325

Adjacent sequences:  A038806 A038807 A038808 * A038810 A038811 A038812

KEYWORD

nonn,base

AUTHOR

Naohiro Nomoto

EXTENSIONS

Additional comments from Larry Reeves (larryr(AT)acm.org), Mar 16 2001

a(0) corrected by Michel Marcus, Jul 14 2013

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 16 08:48 EDT 2019. Contains 327091 sequences. (Running on oeis4.)