OFFSET
1,7
COMMENTS
This is the 3-adic valuation of prime(n)+1.
LINKS
Bruno Berselli, Table of n, a(n) for n = 1..1000
MATHEMATICA
Table[IntegerExponent[Prime[n] + 1, 3], {n, 100}]
PROG
(PARI) forprime(p=2, 700, print1(valuation(p+1, 3), ", "));
(Magma) [Valuation(NthPrime(n)+1, 3): n in [1..100]];
CROSSREFS
KEYWORD
nonn
AUTHOR
Bruno Berselli, Aug 05 2013
STATUS
approved