login
A173919
Numbers that are prime or one less than a prime.
9
1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 16, 17, 18, 19, 22, 23, 28, 29, 30, 31, 36, 37, 40, 41, 42, 43, 46, 47, 52, 53, 58, 59, 60, 61, 66, 67, 70, 71, 72, 73, 78, 79, 82, 83, 88, 89, 96, 97, 100, 101, 102, 103, 106, 107, 108, 109, 112, 113, 126, 127, 130, 131, 136, 137, 138, 139
OFFSET
1,2
COMMENTS
Indices of the triangular numbers in A147846.
Integers k such that k or k+1 is prime. - Giovanni Teofilatto, Mar 05 2010
For a given common difference d, there always exists a longest possible arithmetic progression (AP) of primes, and the number of elements k in this AP of primes is necessarily a term of this sequence. See A123556 for explanations. - Bernard Schott, Mar 18 2023
FORMULA
MATHEMATICA
{#-1, #}&/@Prime[Range[40]]//Flatten//Union (* Harvey P. Dale, Dec 21 2018 *)
CROSSREFS
Complement to A068780. [Giovanni Teofilatto, Mar 11 2010]
Sequence in context: A097296 A131616 A175857 * A205666 A364869 A245809
KEYWORD
nonn,easy
AUTHOR
Giovanni Teofilatto, Mar 02 2010
EXTENSIONS
Definition corrected and sequence extended by R. J. Mathar, Feb 24 2010, Mar 05 2010
STATUS
approved