A210691 Modified Golomb's sequence: a(n) is the number of times n occurs, starting with a(1)=2.
2, 1, 1, 3, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 15, 15, 15, 15, 15, 15, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 17
Offset: 1
Keywords
Examples
a(5)=4 because there are four fives in the series.
Links
- Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
Crossrefs
Cf. A001462
Programs
-
PARI
v=List([2,1,1]);for(n=3,50,for(i=1,v[n],listput(v,n)));Vec(v) \\ Charles R Greathouse IV, Apr 11 2012
Extensions
a(21)-a(75) from Charles R Greathouse IV, Apr 11 2012