|
Search: id:A079356
|
|
|
| A079356 |
|
a(1)=1; a(n)=a(n-1)-2 if n is already in the sequence, a(n)=a(n-1)+3 otherwise. |
|
+0 1
|
|
| 1, 4, 7, 5, 3, 6, 4, 7, 10, 8, 11, 14, 17, 15, 13, 16, 14, 17, 20, 18, 21, 24, 27, 25, 23, 26, 24, 27, 30, 28, 31, 34, 37, 35, 33, 36, 34, 37, 40, 38, 41, 44, 47, 45, 43, 46, 44, 47, 50, 48, 51, 54, 57, 55, 53, 56, 54, 57, 60, 58, 61, 64, 67, 65, 63, 66, 64, 67, 70, 68, 71, 74
(list; graph; listen)
|
|
|
OFFSET
|
1,2
|
|
|
FORMULA
|
a(n)=n+b(n)-3 where b(n) is the period-10 sequence (3, 5, 7, 4, 1, 3, 0, 2, 4, 1)
G.f.: x*(1+2*x+x^2-3*x^3+x^4-4*x^6+7*x^7-4*x^8+2*x^5+2*x^9)/ ((x^4+x^3+x^2+x+1) * ( x^4-x^3+x^2-x+1) * (x-1)^2) [From Maksym Voznyy (voznyy(AT)mail.ru), Jul 27 2009]
|
|
CROSSREFS
|
Sequence in context: A166530 A011518 A132265 this_sequence A146539 A122165 A086202
Adjacent sequences: A079353 A079354 A079355 this_sequence A079357 A079358 A079359
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Benoit Cloitre (benoit7848c(AT)orange.fr), Feb 14 2003
|
|
EXTENSIONS
|
G.f. proposed by Maksym Voznyy checked and corrected by R. J. Mathar, Sep 16 2009.
|
|
|
Search completed in 0.002 seconds
|