login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
Cf. A344541.
Sequence in context: A108022 A108884 A119584 * A279719 A279672 A364648
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Carole Dubois, May 30 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)