login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A033095 Number of 1's when n is written in base b for 2<=b<=n+1. 10
1, 1, 3, 4, 6, 6, 9, 6, 10, 10, 12, 11, 16, 13, 15, 14, 16, 13, 18, 15, 21, 20, 21, 16, 24, 20, 23, 23, 26, 25, 32, 22, 26, 25, 25, 28, 34, 28, 32, 30, 35, 30, 37, 31, 35, 36, 35, 31, 41, 34, 37, 36, 39, 35, 43, 38, 44, 41, 42, 38, 49, 40, 43 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
G.f.: x+(Sum_{b>=2} (Sum_{k>=0} x^(b^k)/(Sum_{0<=i<b} x^(i*b^k)))/(1-x) - x). If the initial term was 0, the initial "x+" would not be needed. This value is rather arbitrary; changing the "n+1" in the definition to "n" would make it 0. - Franklin T. Adams-Watters, Nov 03 2005
MATHEMATICA
f[n_] := Count[Flatten@ Table[ IntegerDigits[n, b], {b, 2, n + 1}], 1]; Array[f, 63] (* Robert G. Wilson v, Nov 14 2012 *)
CROSSREFS
Sequence in context: A274529 A284061 A162625 * A158907 A338281 A338723
KEYWORD
nonn,base
AUTHOR
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 18 13:10 EDT 2024. Contains 371780 sequences. (Running on oeis4.)