|
|
A255307
|
|
Concatenation of the first n entries of the difference sequence of prime numbers (see A001223).
|
|
1
|
|
|
1, 12, 122, 1224, 12242, 122424, 1224242, 12242424, 122424246, 1224242462, 12242424626, 122424246264, 1224242462642, 12242424626424, 122424246264246, 1224242462642466, 12242424626424662, 122424246264246626, 1224242462642466264, 12242424626424662642, 122424246264246626426
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
The digits in A001223, the sequence of differences between consecutive primes, are concatenated to form this sequence.
|
|
LINKS
|
|
|
EXAMPLE
|
a(3) = 122, because the first three entries of A001223 are 1, 2, 2.
|
|
MATHEMATICA
|
f[n_] := FromDigits@ Differences@ Prime@ Range[n + 1]; Array[f, 21] (* Robert G. Wilson v, Mar 31 2015 *)
|
|
PROG
|
(PARI) lista(nn) = {pp = 2; s = ""; forprime(p=3, nn, s = concat(s, p-pp); print1(eval(s), ", "); pp = p; ); } \\ Michel Marcus, Mar 31 2015
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|