0,2

Table of n, a(n) for n=0..74.

a(n) = 5*mod(n,5) + floor(n/5) = 5*A010874(n) + A002266(n)

O.g.f.: -x(-5x^3+19x^4-5x^2-5x-5)/[(-1+x)^2*(x^3+x^4+x^2+x+1)] . - R. J. Mathar, Mar 07 2008

a(0) = 5*mod(0,5) + floor(0/5) = 0

a(3) = 5*mod(3,5) + floor(3/5) = 15

(Python) a = lambda n: 5*(n%5) + floor(n/5)

Cf. A010874, A002266.

Sequence in context: A313715 A313716 A181579 * A283442 A307151 A109046

Adjacent sequences: A137933 A137934 A137935 * A137937 A137938 A137939

nonn,easy

William A. Tedeschi, Mar 06 2008

approved