Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A065882
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A065882 Ultimate modulo 4: right-hand nonzero digit of n when written in base 4. +0
5
1, 2, 3, 1, 1, 2, 3, 2, 1, 2, 3, 3, 1, 2, 3, 1, 1, 2, 3, 1, 1, 2, 3, 2, 1, 2, 3, 3, 1, 2, 3, 2, 1, 2, 3, 1, 1, 2, 3, 2, 1, 2, 3, 3, 1, 2, 3, 3, 1, 2, 3, 1, 1, 2, 3, 2, 1, 2, 3, 3, 1, 2, 3, 1, 1, 2, 3, 1, 1, 2, 3, 2, 1, 2, 3, 3, 1, 2, 3, 1, 1, 2, 3, 1, 1, 2, 3, 2, 1, 2, 3, 3, 1, 2, 3, 2, 1, 2, 3, 1, 1, 2, 3, 2, 1 (list; graph; listen)
OFFSET

1,2

LINKS

Harry J. Smith, Table of n, a(n) for n=1,...,1000

Index entries for sequences related to final digits of numbers

FORMULA

If n mod 4 = 0 then a(n) = a(n/4), otherwise a(n) = n mod 4. a(n) = A065883(n) mod 4.

Fixed point of the morphism : 1 ->1231, 2 ->1232, 3 ->1233, starting from a(1) = 1 . Sequence read mod 2 gives A035263. a(n) = A007913(n) mod 4. - DELEHAM Philippe (kolotoko(AT)wanadoo.fr), Mar 28 2004

EXAMPLE

a(7)=3 and a(112)=3, since 7 is written in base 4 as 13 and 112 as 1300.

MATHEMATICA

Nest[ Flatten[ # /. {1 -> {1, 2, 3, 1}, 2 -> {1, 2, 3, 2}, 3 -> {1, 2, 3, 3}}] &, {1}, 4] (from Robert G. Wilson v (rgwv(AT)rgwv.com), May 07 2005)

PROGRAM

(PARI) baseE(x, b)= { local(d, e=0, f=1); while (x>0, d=x%b; x\=b; e+=d*f; f*=10); return(e) } { for (n=1, 1000, a=baseE(n, 4); while (a%10 == 0, a\=10); write("b065882.txt", n, " ", a%10) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Nov 03 2009]

CROSSREFS

In base 2 this is A000012, base 3 A060236 and base 10 A065881. Cf. A010873, A065883.

Sequence in context: A070913 A114280 A123564 this_sequence A007884 A157813 A111879

Adjacent sequences: A065879 A065880 A065881 this_sequence A065883 A065884 A065885

KEYWORD

base,nonn,new

AUTHOR

Henry Bottomley (se16(AT)btinternet.com), Nov 26 2001

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research