OFFSET
1,1
COMMENTS
The first p+1 (p prime) is 2+1=3, so 3 is the first term of the sequence. The next is 3+1=4=2*2, and the prime 2 appears next, so it is the second term of the sequence. The next p+1 = 5+1 = 6 gives no new prime factor; neither do 7+1 = 8 and 11+1 = 12. 13+1 = 14 = 2*7 gives the new prime factor 7, so 7 is the third term of the sequence.
If "p+1" is changed to "p-1" we get A112037. - N. J. A. Sloane, Jan 24 2014
LINKS
Alois P. Heinz, Table of n, a(n) for n = 1..10000
MATHEMATICA
DeleteDuplicates[ First /@ Flatten[FactorInteger[1 + Prime@Range@200], 1]] (* Giovanni Resta, Jan 24 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Joseph L. Pe, Jan 24 2014
STATUS
approved