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!)
A178998 Primes of the form 4^k mod 3^k. 0
7, 13, 119923, 146050183, 4039362385345521139, 289247481259011497824466400997481269, 1765256712749403700417549596608786383, 395766070055468241613007225643003404495980782673, 2596786183076854435238229837938226284218037897451862682304077097493117 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
{ A000040 } intersect { A064629 }.
MAPLE
select(isprime, [4&^n mod 3^n$n=1..200])[]; # Alois P. Heinz, May 18 2019
MATHEMATICA
Select[Table[PowerMod[4, n, 3^n], {n, 100}], PrimeQ] (* Alonso del Arte, Jan 03 2011 *)
PROG
(PARI) terms(n) = my(i=0); for(k=0, oo, if(i>=n, break); my(x=lift(Mod(4, 3^k)^k)); if(ispseudoprime(x), print1(x, ", "); i++))
/* Print initial 7 terms as follows: */
terms(7) \\ Felix Fröhlich, May 18 2019
CROSSREFS
Sequence in context: A201181 A130594 A227173 * A188929 A258767 A169845
KEYWORD
nonn
AUTHOR
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 08:28 EDT 2024. Contains 371927 sequences. (Running on oeis4.)