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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A033097 Number of 2's when n is written in base b for 2<=b<=n+1. 10
0, 1, 0, 0, 1, 2, 2, 4, 2, 4, 4, 4, 3, 7, 4, 6, 7, 7, 5, 9, 5, 9, 8, 9, 8, 14, 7, 7, 8, 9, 6, 13, 8, 12, 12, 10, 11, 16, 9, 11, 12, 16, 11, 16, 10, 14, 15, 12, 11, 20, 14, 17, 16, 15, 12, 19, 15, 19, 16, 16, 15, 25, 15, 17, 19, 19, 17, 21, 16, 19, 18 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,6

LINKS

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

MATHEMATICA

f[n_] := Count[Flatten@ Table[ IntegerDigits[n, b], {b, 2, n + 1}], 2]; Array[f, 70] (* Robert G. Wilson v, Nov 14 2012 *)

CROSSREFS

Cf. A033093, A033095, A033098, A033099, A033101, A033103, A033105, A033107, A033109, A033111.

Sequence in context: A102763 A054844 A057936 * A036845 A094269 A157227

Adjacent sequences:  A033094 A033095 A033096 * A033098 A033099 A033100

KEYWORD

nonn,base

AUTHOR

Clark Kimberling

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 June 17 05:19 EDT 2019. Contains 324183 sequences. (Running on oeis4.)