login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A255824 a(n) = n for n < 4; a(4n) = a(n); if every 4th term (a(4), a(8), a(12),...) is deleted, this gives back the original sequence. 7
1, 2, 3, 1, 1, 1, 1, 2, 1, 2, 1, 3, 2, 1, 3, 1, 2, 1, 3, 1, 1, 2, 1, 1, 3, 1, 1, 1, 2, 1, 1, 2, 3, 1, 1, 1, 1, 2, 1, 2, 1, 2, 3, 1, 1, 1, 1, 3, 1, 2, 1, 2, 2, 1, 2, 1, 3, 1, 1, 3, 1, 1, 3, 1, 1, 2, 1, 2, 2, 2, 1, 1, 2, 1, 3, 3, 1, 1, 3, 1, 1, 1, 3, 1, 1, 1, 2, 2, 1, 2, 2, 1, 2, 1, 1, 1, 2, 1, 3, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

A self-generating sequence. This is the m=4 analog of the m=10 variant A126616. Sequence A117943 is the m=3 analog with all terms decreased by 1.

LINKS

Table of n, a(n) for n=1..100.

FORMULA

a(n) = a(n/4) if n==0 (mod 4); a(n) = a(n - floor(n/4)) otherwise.

PROG

(PARI) a(n, m=4)=while(n>=m, if(n%m, n-=n\m, n\=m)); n \\ M. F. Hasler, Mar 07 2015

CROSSREFS

Cf. A117943, A255825 - A255829, A126616.

Sequence in context: A321899 A027870 A070077 * A122587 A276333 A207572

Adjacent sequences:  A255821 A255822 A255823 * A255825 A255826 A255827

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 20 15:04 EST 2019. Contains 320327 sequences. (Running on oeis4.)