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!)
A099544 Odd part of n modulo 3. 7

%I #4 May 14 2014 01:23:02

%S 1,1,0,1,2,0,1,1,0,2,2,0,1,1,0,1,2,0,1,2,0,2,2,0,1,1,0,1,2,0,1,1,0,2,

%T 2,0,1,1,0,2,2,0,1,2,0,2,2,0,1,1,0,1,2,0,1,1,0,2,2,0,1,1,0,1,2,0,1,2,

%U 0,2,2,0,1,1,0,1,2,0,1,2,0,2,2,0,1,1,0,2,2,0,1,2,0,2,2,0,1,1,0,1,2,0

%N Odd part of n modulo 3.

%C Zero if multiple of 3, one if of form 2^j(3k+1) with 3k+1 odd, two otherwise.

%o (PARI) (n>>valuation(n,2))%3 \\ _Charles R Greathouse IV_, May 14 2014

%Y Equals A010872( A000265(n) ).

%Y Cf. A099545, A099546, A099547, A099548, A099549, A099550, A099551.

%K nonn,easy

%O 1,5

%A _Ralf Stephan_, Oct 23 2004

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 19 19:02 EDT 2024. Contains 371798 sequences. (Running on oeis4.)