|
|
A344546
|
|
Lexicographically earliest sequence S of distinct nonnegative terms such that the sum of the last k digits of S is prime, k being the leftmost digit of a(n) and k > 1.
|
|
0
|
|
|
0, 2, 3, 20, 6, 60, 5, 21, 9, 8, 61, 22, 30, 23, 7, 31, 24, 4, 32, 40, 25, 26, 33, 28, 34, 41, 27, 50, 29, 62, 35, 37, 36, 80, 38, 63, 200, 39, 51, 42, 43, 44, 64, 52, 90, 91, 201, 45, 92, 81, 65, 202, 70, 46, 82, 83, 48, 47, 49, 53, 93, 95, 55, 57, 71, 66, 400, 203, 67, 94, 54, 96, 56, 58, 59, 204, 85, 86, 68
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
EXAMPLE
|
a(1) = 0, k must be > 1;
a(2) = 2, k = 2, and the sum 0 + 2 (= 2) is prime;
a(3) = 3, k = 3, and the sum 0 + 2 + 3 (= 5) is prime;
a(4) = 20, k = 2, and the sum 3 + 2 (= 5) is prime;
a(5) = 6, k = 6, and the sum 0 + 2 + 3 + 2 + 0 + 6 (= 13) is prime;
a(6) = 60, k = 6, and the sum 2 + 3 + 2 + 0 + 6 + 6 (= 19) is prime; etc.
|
|
CROSSREFS
|
|
|
KEYWORD
|
base,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|