OFFSET
1,2
FORMULA
EXAMPLE
k=1: Of the three numbers (1,2,3), exactly two are prime, so 1*2*3/6 = 1 is in the sequence.
k=2: Of the three numbers (2,3,4), exactly two are prime, so 2*3*4/6 = 4 is in the sequence.
k=4: Of the three numbers (4,5,6), exactly one is prime, so 4*5*6/6 = 20 is not in the sequence.
MAPLE
A000292 := proc(n) n*(n+1)*(n+2)/6; end: for n from 1 to 800 do ps := 0 ; if isprime(n) then ps := ps+1 ; fi; if isprime(n+1) then ps := ps+1 ; fi; if isprime(n+2) then ps := ps+1 ; fi; if ps = 2 then printf("%d, ", A000292(n)) ; fi; od: # R. J. Mathar, Aug 14 2009
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Dec 15 2008
EXTENSIONS
Name and Example section clarified by Jon E. Schoenfield, Aug 06 2017
STATUS
approved