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.

A073130 a(n) = gcd(p(n+1) - p(n), p(p(n+1)) - p(p(n))), where p(n) is the n-th prime.

This page as a plain text file.
%I A073130 #11 Sep 08 2022 08:45:06
%S A073130 1,2,2,2,2,2,2,4,2,2,6,2,2,4,6,6,2,6,2,2,2,2,6,8,2,2,4,2,2,2,2,2,2,2,
%T A073130 2,6,6,4,2,2,2,2,2,2,2,4,4,4,2,4,2,2,2,6,6,6,2,2,4,2,2,2,4,2,2,2,6,2,
%U A073130 2,2,6,4,6,6,2,6,4,2,2,2,2,2,2,6,2,6,4,2,2,4,4,2,4,2,2,2,12,2,6,2,2,2,6,2
%N A073130 a(n) = gcd(p(n+1) - p(n), p(p(n+1)) - p(p(n))), where p(n) is the n-th prime.
%H A073130 G. C. Greubel, <a href="/A073130/b073130.txt">Table of n, a(n) for n = 1..1000</a>
%p A073130 seq(gcd(ithprime(n+1) - ithprime(n), ithprime(ithprime(n+1)) - ithprime(ithprime(n))), n=1..120); # _G. C. Greubel_, Oct 20 2019
%t A073130 Table[GCD[Prime[n+1]-Prime[n], Prime[Prime[n+1]]-Prime[Prime[n]]], {n, 120}]
%o A073130 (PARI) vector(120, n, gcd(prime(n+1) - prime(n), prime(prime(n+1)) - prime(prime(n))) ) \\ _G. C. Greubel_, Oct 20 2019
%o A073130 (Magma) [GCD(NthPrime(n+1) - NthPrime(n), NthPrime(NthPrime(n+1)) - NthPrime(NthPrime(n))): n in [1..120]]; // _G. C. Greubel_, Oct 20 2019
%o A073130 (Sage) [gcd(nth_prime(n+1) - nth_prime(n), nth_prime(nth_prime(n+1)) - nth_prime(nth_prime(n))) for n in (1..120)] # _G. C. Greubel_, Oct 20 2019
%Y A073130 Cf. A073131, A073132.
%K A073130 nonn
%O A073130 1,2
%A A073130 _Labos Elemer_, Jul 16 2002