|
|
A030373
|
|
Write n in base 4 and juxtapose.
|
|
27
|
|
|
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
(list;
constant;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
An irregular table in which the n-th row lists the base-4 digits of n. - Jason Kimberley, Nov 26 2012
The base-4 Champernowne constant: it is normal in base 4. - Jason Kimberley, Nov 26 2012
|
|
LINKS
|
F. J. Aragon Artacho, D. H. Bailey, J. M. Borwein, and P. B. Borwein, Walking on real numbers, preprint September 2012.
|
|
EXAMPLE
|
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; ....
|
|
MATHEMATICA
|
Flatten[IntegerDigits[Range[40], 4]] (* Harvey P. Dale, Aug 23 2011 *)
|
|
PROG
|
(Magma) &cat[Reverse(IntegerToSequence(n, 4)):n in[1..31]]; // Jason Kimberley, Dec 07 2012
(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))
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|