|
Search: id:A065882
|
|
|
| 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
|
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)
|
|
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 A111879 A114732
Adjacent sequences: A065879 A065880 A065881 this_sequence A065883 A065884 A065885
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
Henry Bottomley (se16(AT)btinternet.com), Nov 26 2001
|
|
|
Search completed in 0.005 seconds
|