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!)
A255825 A self-generating sequence: a(n) = n for n < 5; a(5n) = a(n); if every 5th term (a(5), a(10), a(15),...) is deleted, this gives back the original sequence. 1
1, 2, 3, 4, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 3, 1, 2, 3, 1, 4, 2, 3, 1, 4, 1, 2, 3, 1, 4, 1, 1, 2, 3, 1, 1, 4, 1, 1, 2, 1, 3, 1, 1, 4, 1, 1, 1, 2, 1, 2, 3, 1, 1, 4, 1, 1, 1, 1, 2, 2, 1, 2, 3, 1, 1, 1, 4, 1, 1, 2, 1, 1, 2, 2, 3, 1, 2, 3, 1, 1, 1, 1, 4, 1, 2, 1, 2, 1, 1, 3, 2, 2, 3, 1, 1, 2, 3, 1, 1, 4 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This is the m=5 analog of the m=10 variant A126616. Sequence A117943 is the m=3 analog with all terms decreased by 1.
LINKS
FORMULA
a(n) = a(n/5) if n==0 (mod 5); a(n) = a(n - floor(n/5)) otherwise.
PROG
(PARI) a(n, m=5)=while(n>=m, if(n%m, n-=n\m, n\=m)); n \\ M. F. Hasler, Mar 07 2015
CROSSREFS
Sequence in context: A031219 A346689 A071498 * A339255 A086198 A086196
KEYWORD
nonn
AUTHOR
M. F. Hasler, Mar 07 2015
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 April 25 08:27 EDT 2024. Contains 371964 sequences. (Running on oeis4.)