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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A099545 Odd part of n, modulo 4. 10
1, 1, 3, 1, 1, 3, 3, 1, 1, 1, 3, 3, 1, 3, 3, 1, 1, 1, 3, 1, 1, 3, 3, 3, 1, 1, 3, 3, 1, 3, 3, 1, 1, 1, 3, 1, 1, 3, 3, 1, 1, 1, 3, 3, 1, 3, 3, 3, 1, 1, 3, 1, 1, 3, 3, 3, 1, 1, 3, 3, 1, 3, 3, 1, 1, 1, 3, 1, 1, 3, 3, 1, 1, 1, 3, 3, 1, 3, 3, 1, 1, 1, 3, 1, 1, 3, 3, 3, 1, 1, 3, 3, 1, 3, 3, 3, 1, 1, 3, 1, 1, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,3

COMMENTS

The terms of this sequence are the even-indexed terms of A112658. - Alexandre Wajnberg, Jan 02 2006

Fractal sequence: odd terms are 1, 3, 1, 3,...; the even terms are the sequence itself: a(n)=a(2n)=a(4n)=a(8n)=a(16n)=... - Alexandre Wajnberg, Jan 02 2006

LINKS

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

FORMULA

a(n) = 2 * A038189(n) + 1.

(a(n)-1)/2 = A014707(n). [Alexandre Wajnberg, Jan 02 2006]

a(n) = A010873( A000265(n) ).

EXAMPLE

a(100)=1: the odd part of 100 is 100/4 = 25, and 25 % 4 =1.

PROG

(PARI) a(n)=bitand(n/(2^valuation(n, 2)), 3); /* Joerg Arndt, Jul 18 2012 */

CROSSREFS

Cf. A010873, A000265, A038189.

Cf. A099544, A099546, A099547, A099548, A099549, A099550, A099551.

Sequence in context: A033989 A307501 A169941 * A300867 A269301 A132429

Adjacent sequences:  A099542 A099543 A099544 * A099546 A099547 A099548

KEYWORD

nonn,easy

AUTHOR

Ralf Stephan, Oct 23 2004

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 June 20 09:12 EDT 2019. Contains 324234 sequences. (Running on oeis4.)