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!)
A099584 Exponent of 3 in factorization of prime(n) - 1. 4
0, 0, 0, 1, 0, 1, 0, 2, 0, 0, 1, 2, 0, 1, 0, 0, 0, 1, 1, 0, 2, 1, 0, 0, 1, 0, 1, 0, 3, 0, 2, 0, 0, 1, 0, 1, 1, 4, 0, 0, 0, 2, 0, 1, 0, 2, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 3, 1, 0, 1, 0, 2, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 3, 0, 0, 2, 0, 1, 0, 1, 0, 3, 1, 0, 0, 1, 0, 1, 0, 0, 5, 0, 1, 0, 0, 0, 2, 3, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,8
LINKS
MAPLE
seq(padic:-ordp(ithprime(i)-1, 3), i=1..200); # Robert Israel, Mar 02 2018
MATHEMATICA
Table[IntegerExponent[Prime[n] - 1, 3], {n, 110}] (* Bruno Berselli, Aug 05 2013 *)
PROG
(PARI) forprime(p=2, 700, print1(valuation(p-1, 3), ", ")); \\ Bruno Berselli, Aug 05 2013
(Magma) [Valuation(NthPrime(n)-1, 3): n in [1..110]]; // Bruno Berselli, Aug 05 2013
CROSSREFS
Equals A007949( A006093(n) ), prime(n)-1 = 3^a(n) * A099585(n).
Cf. A023506.
Sequence in context: A034950 A351127 A331816 * A100563 A325192 A087773
KEYWORD
nonn
AUTHOR
Ralf Stephan, Oct 24 2004
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 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)