The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A318265 a(1) = 1, a(n) = 5*a(n/3) if n is divisible by 3, otherwise a(n) = n - a(n-1). 4
1, 1, 5, -1, 6, 5, 2, 6, 25, -15, 26, -5, 18, -4, 30, -14, 31, 25, -6, 26, 10, 12, 11, 30, -5, 31, 125, -97, 126, -75, 106, -74, 130, -96, 131, -25, 62, -24, 90, -50, 91, -20, 63, -19, 150, -104, 151, -70, 119, -69, 155, -103, 156, 125, -70, 126, -30, 88, -29, 130, -69, 131, 50, 14, 51, 60, 7, 61, 55, 15, 56, 150 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
From a generalization of A317825.
LINKS
PROG
(PARI) a(n)=if(n==1, n, if(n%3==0, 5*a(n/3), n-a(n-1)));
CROSSREFS
Sequence in context: A173898 A343344 A200644 * A318553 A176909 A131944
KEYWORD
sign,look
AUTHOR
Altug Alkan and Antti Karttunen, Aug 22 2018
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 May 29 00:29 EDT 2024. Contains 372921 sequences. (Running on oeis4.)