login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A014887
n is equal to the number of 1's in all numbers <= n written in base 7.
0
1, 3930, 6044, 61879, 137256
OFFSET
1,2
MATHEMATICA
Module[{nn=137300, dc}, dc=Accumulate[DigitCount[Range[nn], 7, 1]]; Position[ Thread[ {Range[nn], dc}], _?(#[[1]]==#[[2]]&), 1, Heads-> False]]//Flatten (* Harvey P. Dale, Oct 10 2021 *)
CROSSREFS
Sequence in context: A335789 A250671 A179139 * A251823 A031822 A288894
KEYWORD
nonn,base,fini,full
EXTENSIONS
List proved complete by Hugo van der Sanden (cf. A014886).
STATUS
approved