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”).

A079355
a(1) = 1; a(n) = a(n-1)-3 if n is already in the sequence, a(n) = a(n-1)+4 otherwise.
1
1, 5, 9, 13, 10, 14, 18, 22, 19, 16, 20, 24, 21, 18, 22, 19, 23, 20, 17, 14, 11, 8, 5, 2, 6, 10, 14, 18, 22, 26, 30, 34, 38, 35, 32, 36, 40, 37, 41, 38, 35, 39, 43, 47, 51, 55, 52, 56, 60, 64, 61, 58, 62, 66, 63, 60, 64, 61, 65, 62, 59, 56, 53, 50, 47, 44, 48, 52, 56, 60, 64, 68
OFFSET
1,2
FORMULA
a(n) = n+b(n)-22 where b(n) is the 42-periodic sequence (22, 25, 28, 31, 27, 30, 33, 36, 32, 28, 31, 34, 30, 26, 29, 25, 28, 24, 20, 16, 12, 8, 4, 0, 3, 6, 9, 12, 15, 18, 21, 24, 27, 23, 19, 22, 25, 21, 24, 20, 16, 19)
CROSSREFS
Cf. A079357.
Sequence in context: A277617 A103703 A143706 * A080781 A079357 A080455
KEYWORD
nonn,hear
AUTHOR
Benoit Cloitre, Feb 14 2003
STATUS
approved