OFFSET
1,3
COMMENTS
Iff k appears k-1 times successively then k is prime.
MAPLE
A000217 := proc(n) n*(n+1)/2 ; end: A003056 := proc(n) floor((sqrt(1+8*n)-1)/2) ; end: A114103 := proc(n, k) lcm(n, A000217(n-1)+k) ; end: A114104 := proc(n) local row, col ; row := A003056(n-1)+1 ; col := n-A000217(row-1) ; A114103(row, col)/n ; end: for n from 1 to 80 do printf("%d, ", A114104(n)) ; od ; # R. J. Mathar, May 10 2007
MATHEMATICA
CROSSREFS
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Nov 21 2005
EXTENSIONS
Corrected and extended by R. J. Mathar, May 10 2007
STATUS
approved