login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
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: A109718 A053385 A213543 * A035640 A079327 A340504
KEYWORD
nonn
AUTHOR
Michel Lagneau, Nov 30 2014
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 29 02:23 EDT 2024. Contains 371264 sequences. (Running on oeis4.)