OFFSET
0,3
LINKS
D. Broadhurst, Primes from concatenation: results and heuristics, NmbrThry List, August 1, 2015
EXAMPLE
a(0) = 0 is the result of the empty sum corresponding to 0 digits.
a(2) = 49 = (6+1)^2 = 6^2 + 2*6 + 1 = 121_6 is the concatenation of (1, 2, 1).
a(7) = 676678989289 = 1234510111054321_6 is the concatenation of (1, 2, 3, 4, 5, 10, 11, 10, 5, 4, 3, 2, 1), where the middle "10, 11, 10" are the base 6 representations of 6, 7, 6.
PROG
(PARI) a(n, b=6)=sum(i=1, #n=concat(vector(n*2-1, k, digits(min(k, n*2-k), b))), n[i]*b^(#n-i))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
M. F. Hasler, Aug 01 2015
STATUS
approved