OFFSET
0,1
COMMENTS
See A007980 for the same construction with multiples of 2.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
FORMULA
G.f.: -(3*x^8-2*x^7+x^4-2*x+3) / (x^9-2*x^8+x^7-x^2+2*x-1). - Alois P. Heinz, Aug 12 2009
EXAMPLE
3,4,5,6,8,10,12,15: next term is 19 which is 15 + 4 previous terms divisible by 3 (they are 3,6,12,15).
MAPLE
a:= proc(n) local m, r; m:= iquo(n, 7, 'r'); (3+21*m+6*r) *m/2 +[3, 4, 5, 6, 8, 10, 12][r+1] end: seq(a(n), n=0..80); # Alois P. Heinz, Aug 12 2009
MATHEMATICA
l={3}; Do[AppendTo[l, Last[l]+Count[l, _?(Divisible[#, 3]&)]], {n, 60}]; l (* Harvey P. Dale, Jul 24 2011 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Eric Angelini, Aug 05 2007
EXTENSIONS
More terms from Alois P. Heinz, Aug 12 2009
STATUS
approved