

A047234


Numbers that are congruent to {0, 1, 4} mod 6.


7



0, 1, 4, 6, 7, 10, 12, 13, 16, 18, 19, 22, 24, 25, 28, 30, 31, 34, 36, 37, 40, 42, 43, 46, 48, 49, 52, 54, 55, 58, 60, 61, 64, 66, 67, 70, 72, 73, 76, 78, 79, 82, 84, 85, 88, 90, 91, 94, 96, 97, 100, 102, 103, 106, 108, 109, 112, 114, 115, 118, 120, 121, 124
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,3


LINKS

Table of n, a(n) for n=1..63.
Index entries for linear recurrences with constant coefficients, signature (1,0,1,1)


FORMULA

Equals partial sums of (0, 1, 3, 2, 1, 3, 2, 1, 3, 2,...).  Gary W. Adamson, Jun 19 2008
G.f. x^2*(1+x)*(2*x+1) / ( (1+x+x^2)*(x1)^2 ).  R. J. Mathar, Oct 08 2011


MATHEMATICA

Select[Range[0, 200], Mod[#, 6] == 0  Mod[#, 6] == 1  Mod[#, 6] == 4 &] (* Vladimir Joseph Stephan Orlovsky, Jul 07 2011 *)


PROG

(PARI) a(n)=(n1)\3*6+[4, 0, 1][n%3+1] \\ Charles R Greathouse IV, Jun 11 2015


CROSSREFS

Cf. A047240, A047242.
Sequence in context: A080641 A229744 A191920 * A089532 A103401 A107622
Adjacent sequences: A047231 A047232 A047233 * A047235 A047236 A047237


KEYWORD

nonn,easy


AUTHOR

N. J. A. Sloane.


STATUS

approved



