OFFSET
1,2
FORMULA
a(n) = p - (-1)^p - 1 where p is the n-th prime.
a(n) = p mod n^2, where p is the n-th prime. - Gary Detlefs, Jan 14 2012
MAPLE
seq(ithprime(n) mod n^2, n=1..59) # Gary Detlefs, Jan 14 2012
PROG
(PARI) a(n)=if(n>1, prime(n)) \\ Charles R Greathouse IV, Aug 26 2011
CROSSREFS
KEYWORD
nonn,easy,less
AUTHOR
Juri-Stepan Gerasimov, May 23 2009
STATUS
approved