A275993 Champernowne sequence: write n in base 16 and juxtapose.
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1, 0, 1, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 1, 8, 1, 9, 1, 10, 1, 11, 1, 12, 1, 13, 1, 14, 1, 15, 2, 0, 2, 1, 2, 2, 2, 3, 2, 4, 2, 5, 2, 6, 2, 7, 2, 8, 2, 9, 2, 10, 2, 11, 2, 12, 2, 13, 2, 14, 2, 15, 3, 0, 3, 1, 3, 2, 3, 3, 3, 4, 3, 5, 3, 6, 3, 7, 3, 8, 3, 9, 3, 10, 3, 11, 3
Offset: 0
Links
- Paolo Xausa, Table of n, a(n) for n = 0..10000
- Jim Bumgardner, Hexadecimal Sudoku Puzzles
- Tech Insider, This is the code Matt Damon and NASA use to communicate in 'The Martian'
- Eric W. Weisstein, Wolfram MathWorld, Hexadecimal
- Wikipedia, Hexadecimal
Crossrefs
Programs
-
Mathematica
almostNatural[n_, b_] := Block[{m = 0, d = n, i = 1, l, p}, While[m <= d, l = m; m = (b -1) i*b^(i -1) + l; i++]; i--; p = Mod[d -l, i]; q = Floor[(d -l)/i] + b^(i -1); If[p != 0, IntegerDigits[q, b][[p]], Mod[q -1, b]]]; Array[ almostNatural[#, 16] &, 105, 0] First[RealDigits[ChampernowneNumber[16], 16, 100, 0]] (* Paolo Xausa, Jun 21 2024 *)
Comments