A030373 Write n in base 4 and juxtapose.
1, 2, 3, 1, 0, 1, 1, 1, 2, 1, 3, 2, 0, 2, 1, 2, 2, 2, 3, 3, 0, 3, 1, 3, 2, 3, 3, 1, 0, 0, 1, 0, 1, 1, 0, 2, 1, 0, 3, 1, 1, 0, 1, 1, 1, 1, 1, 2, 1, 1, 3, 1, 2, 0, 1, 2, 1, 1, 2, 2, 1, 2, 3, 1, 3, 0, 1, 3, 1, 1, 3, 2, 1, 3, 3, 2, 0, 0, 2, 0, 1, 2, 0, 2, 2, 0, 3, 2, 1, 0
Offset: 1
Examples
1; 2; 3; 1,0; 1,1; 1,2; 1,3; 2,0; 2,1; 2,2; ... 3,3; 1,0,0; 1,0,1; 1,0,2; 1,0,3; 1,1,0; ....
Links
- R. J. Mathar, Table of n, a(n) for n = 1..4664
- F. J. Aragon Artacho, D. H. Bailey, J. M. Borwein, and P. B. Borwein, Walking on real numbers, preprint September 2012.
Crossrefs
Programs
-
Magma
&cat[Reverse(IntegerToSequence(n,4)):n in[1..31]]; // Jason Kimberley, Dec 07 2012
-
Mathematica
Flatten[IntegerDigits[Range[40],4]] (* Harvey P. Dale, Aug 23 2011 *)
-
Python
from itertools import count, chain, islice from sympy.ntheory.factor_ import digits def A030373_gen(): return chain.from_iterable(digits(m, 4)[1:] for m in count(1)) A030373_list = list(islice(A030373_gen(), 30)) # Chai Wah Wu, Jan 07 2022
Comments