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.
%I A179078 #12 Nov 03 2024 19:26:15 %S A179078 1,2,3,4,0,11,13,16,5,16,20,17,22,6,33,16,5,39,45,25,5,4,26,72,21,53, %T A179078 43,80,85,12,53,94,54,135,113,132,125,32,34,163,100,147,52,61,84,46, %U A179078 54,80,122,103,83,43,109,87,127,125,239,129,63,98,160,223,29,82,3,68,288,322 %N A179078 a(n) = ((3^p - 3)/p) mod p where p is n-th prime. %C A179078 a(n) = 0 where n=5 (p=11) and n=78940 (p=1006003) see A014127. %H A179078 Robert Israel, <a href="/A179078/b179078.txt">Table of n, a(n) for n = 1..10000</a> %p A179078 f:= p -> (3&^p-3 mod p^2)/p: %p A179078 seq(f(ithprime(i)),i=1..100); # _Robert Israel_, Nov 03 2024 %t A179078 aa = {}; Do[AppendTo[aa, Mod[(3^Prime[n] - 3)/Prime[n], Prime[n]]], {n, 1, 100}]; aa (* _Artur Jasinski_ *) %Y A179078 Cf. A014127, A179077, A377669. %K A179078 nonn %O A179078 1,2 %A A179078 _Artur Jasinski_, Jun 28 2010