|
|
A328011
|
|
The 5x + 1 sequence beginning at 1.
|
|
3
|
|
|
1, 6, 3, 16, 8, 4, 2, 1, 6, 3, 16, 8, 4, 2, 1, 6, 3, 16, 8, 4, 2, 1, 6, 3, 16, 8, 4, 2, 1, 6, 3, 16, 8, 4, 2, 1, 6, 3, 16, 8, 4, 2, 1, 6, 3, 16, 8, 4, 2, 1, 6, 3, 16, 8, 4, 2, 1, 6, 3, 16, 8, 4, 2, 1, 6, 3, 16, 8, 4, 2, 1, 6, 3, 16, 8, 4, 2, 1, 6, 3, 16, 8, 4, 2, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
See A328010 for further information.
|
|
LINKS
|
|
|
FORMULA
|
a(n+1) = 5*a(n) + 1 if a(n) is odd, a(n+1) = a(n)/2 otherwise.
G.f.: (1 + 6*x + 3*x^2 + 16*x^3 + 8*x^4 + 4*x^5 + 2*x^6) / ((1 - x)*(1 + x + x^2 + x^3 + x^4 + x^5 + x^6)).
a(n) = a(n-7) for n>6.
(End)
|
|
PROG
|
(PARI) Vec((1 + 6*x + 3*x^2 + 16*x^3 + 8*x^4 + 4*x^5 + 2*x^6) / ((1 - x)*(1 + x + x^2 + x^3 + x^4 + x^5 + x^6)) + O(x^80)) \\ Colin Barker, Oct 08 2019
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|