

A175408


a(n) + a(n  1) is alternatively a cube or a square.


0



1, 7, 2, 6, 3, 5, 4, 4, 5, 3, 1, 7, 2, 6, 3, 5, 4, 4, 5, 3, 1, 7, 2, 6, 3, 5, 4, 4, 5, 3, 1, 7, 2, 6, 3, 5, 4, 4, 5, 3, 1, 7, 2, 6, 3, 5, 4, 4, 5, 3, 1, 7, 2, 6, 3, 5, 4, 4, 5, 3, 1, 7, 2, 6, 3, 5, 4, 4, 5, 3, 1, 7, 2, 6, 3, 5, 4, 4, 5, 3, 1, 7, 2, 6, 3, 5, 4, 4, 5, 3, 1, 7, 2, 6, 3, 5, 4, 4, 5, 3, 1, 7, 2, 6, 3
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,2


COMMENTS

a(1)=1, then a(2n) = (the least cube > a(2n1))  a(2n1), and a(2n+1) = (the least square > a(2n))  a(2n).
Period of length 10: {7,2,6,3,5,4,4,5,3,1}.


LINKS

Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,1).


FORMULA

a(1)=1, afterwards a(n)=A130532(n+7).


MATHEMATICA

LinearRecurrence[{0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, {1, 7, 2, 6, 3, 5, 4, 4, 5, 3}, 120] (* or *) PadRight[ {}, 120, {1, 7, 2, 6, 3, 5, 4, 4, 5, 3}] (* Harvey P. Dale, Jul 05 2022 *)


CROSSREFS



KEYWORD

nonn


AUTHOR



STATUS

approved



