OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
EXAMPLE
a(12) = (1)(2)(3)(4)(5)(6)(7)(8)(9)(A)(B)(10) = 123456789AB10_12 = 10610896401084.
MATHEMATICA
If[STARTPOINT==1, n={}, n=Flatten[IntegerDigits[Range[STARTPOINT-1], 12]]]; Table[AppendTo[n, IntegerDigits[w, 12]]; n=Flatten[n]; FromDigits[n, 12], {w, STARTPOINT, ENDPOINT}] (* Dylan Hamilton, Aug 11 2010 *)
f[n_]:= FromDigits[Flatten@IntegerDigits[Range@n, 12], 12]; Array[f, 20] (* Vincenzo Librandi, Dec 30 2012 *)
PROG
(Magma) [n eq 1 select 1 else Self(n-1)*12^(1+Ilog(12, n))+n: n in [1..20]]; // Vincenzo Librandi, Dec 30 2012
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Patrick De Geest, May 15 1999
STATUS
approved