login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A257567 a(n) is the largest exponent k such that 3^k divides (prime(n)^2 + 2). 2
1, 0, 3, 1, 1, 2, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 4, 1, 2, 1, 1, 1, 1, 1, 1, 1, 4, 1, 1, 3, 1, 2, 1, 2, 2, 1, 3, 1, 3, 1, 1, 1, 1, 2, 1, 1, 3, 1, 1, 2, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 2, 2, 1, 2, 1, 1, 1, 2, 2, 1, 1, 1, 1, 3, 1, 4, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 3, 2, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
COMMENTS
Except for n=2, all a(n) > 1 because (prime(n)^2 + 2) is divisible by 3.
LINKS
FORMULA
a(n) = A007949(A061725(n)). - Michel Marcus, May 01 2015
EXAMPLE
a(1) = 1 because p=prime(1)=2 and p^2 + 2 = 6 = 3^1*2,
a(2) = 0 because p=prime(2)=3 and p^2 + 2 = 11 = 3^0*11,
a(3) = 3 because p=prime(3)=5 and p^2 + 2 = 27 = 3^3.
MATHEMATICA
Table[IntegerExponent[Prime[k]^2 + 2, 3], {k, 100}]
PROG
(PARI) a(n) = valuation(prime(n)^2+2, 3); \\ Michel Marcus, May 01 2015
CROSSREFS
Cf. A007949 (3-adic valuation), A061725 (p^2+2, with p prime), A257568.
Sequence in context: A174820 A099501 A089762 * A318440 A307790 A189965
KEYWORD
nonn
AUTHOR
Zak Seidov, Apr 30 2015
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 19:39 EDT 2024. Contains 371963 sequences. (Running on oeis4.)