OFFSET
1,2
COMMENTS
83 is the only prime in this sequence among the first 3000 terms (email from Kurt Foster, Oct 24 2015). - N. J. A. Sloane, Oct 25 2015
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..390
EXAMPLE
a(9): (1)(2)(3)(4)(5)(6)(7)(10)(11) = 12345671011_8 = 1402434057.
MATHEMATICA
If[STARTPOINT==1, n={}, n=Flatten[IntegerDigits[Range[STARTPOINT-1], 8]]]; Table[AppendTo[n, IntegerDigits[w, 8]]; n=Flatten[n]; FromDigits[n, 8], {w, STARTPOINT, ENDPOINT}] (* Dylan Hamilton, Aug 11 2010 *)
Table[FromDigits[Flatten[IntegerDigits[#, 8]&/@Range[n]], 8], {n, 20}] (* Harvey P. Dale, Dec 07 2012 *)
PROG
(Magma) [n eq 1 select 1 else Self(n-1)*8^(1+Ilog(8, n))+n: n in [1..20]]; // Vincenzo Librandi, Dec 30 2012
(Python)
from functools import reduce
def A048440(n): return reduce(lambda i, j:(i<<3*(1+(j.bit_length()-1)//3))+j, range(n+1)) # Chai Wah Wu, Feb 26 2023
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Patrick De Geest, May 15 1999
STATUS
approved