login
A247254
a(1)=0; for n>1, a(n+1)= a(n)- A004648(n) if a(n)>= A004648(n) else a(n) + A004648(n).
1
0, 0, 1, 3, 0, 1, 0, 3, 0, 5, 14, 5, 4, 2, 1, 3, 8, 0, 7, 17, 6, 16, 3, 17, 0, 22, 45, 23, 0, 22, 45, 42, 39, 34, 31, 22, 15, 6, 17, 6, 19, 4, 17, 36, 19, 2, 17, 40, 9, 40, 11, 40, 9, 38, 3, 40, 1, 42, 3, 44, 3, 42, 87, 32, 87, 34, 87, 24, 89, 87, 18, 87, 16, 14
OFFSET
1,4
LINKS
MAPLE
A247254 := proc(n)
option remember;
local a48 ;
if n=1 then
0;
else
a48 := A004648(n-1) ;
if procname(n-1) >= a48 then
procname(n-1)-a48 ;
else
procname(n-1)+a48 ;
end if;
end if;
end proc: # R. J. Mathar, Dec 02 2014
CROSSREFS
Cf. A004648.
Sequence in context: A053385 A213543 A374204 * A035640 A079327 A340504
KEYWORD
nonn
AUTHOR
Michel Lagneau, Nov 30 2014
STATUS
approved