cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A179394 a(n) = prime(n)^2 mod prime(n+2).

This page as a plain text file.
%I A179394 #21 May 30 2023 11:25:29
%S A179394 4,2,3,10,2,17,13,13,2,27,18,36,36,47,26,3,64,29,36,64,17,11,2,43,36,
%T A179394 36,36,36,70,62,100,64,144,144,64,144,100,100,144,64,144,144,36,36,
%U A179394 196,130,29,36,36,100,64,144,256,144,144,64,64,100,36,144,269,13,36,36,324,63,256,144,36,100,196,196,144,100,100,196
%N A179394 a(n) = prime(n)^2 mod prime(n+2).
%H A179394 Harvey P. Dale, <a href="/A179394/b179394.txt">Table of n, a(n) for n = 1..1000</a>
%e A179394 a(1)=2^2 mod(5)=4 mod(5)=4.
%e A179394 a(2)=3^2 mod(7)=9 mod(7)=2.
%e A179394 a(3)=5^2 mod(11)=25 mod(11)=3.
%e A179394 a(4)=7^2 mod(13)=49 mod(13)=10.
%t A179394 PowerMod[#[[1]],2,#[[3]]]&/@Partition[Prime[Range[80]],3,1] (* _Harvey P. Dale_, May 30 2023 *)
%o A179394 (PARI) a(n) = prime(n)^2 % prime(n+2) \\ _Michel Marcus_, Aug 06 2013
%Y A179394 Cf. A167770 has a similar sequence generation rule.
%K A179394 nonn
%O A179394 1,1
%A A179394 _Umut Uludag_, Jan 07 2011
%E A179394 General formula corrected by Umut Uludag