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.

A084310 a(n) = gcd(prime(n)+1, n).

This page as a plain text file.
%I A084310 #14 May 05 2017 08:15:22
%S A084310 1,2,3,4,1,2,1,4,3,10,1,2,1,2,3,2,1,2,1,4,1,2,1,6,1,2,1,4,1,6,1,4,3,2,
%T A084310 5,4,1,2,3,2,1,14,1,2,9,2,1,16,1,10,3,4,1,18,1,8,3,2,1,6,1,2,7,8,1,6,
%U A084310 1,2,3,70,1,72,1,2,5,4,1,2,1,10,3,2,1,14,5,2,3,2,1,2,13,4,1,2,5,24,1,2,1,2
%N A084310 a(n) = gcd(prime(n)+1, n).
%H A084310 Ivan Neretin, <a href="/A084310/b084310.txt">Table of n, a(n) for n = 1..10000</a>
%p A084310 A084310:= n-> igcd(ithprime(n)+1,n): seq(A084310(n), n=1..150); # _Wesley Ivan Hurt_, Jan 27 2017
%t A084310 Table[GCD[Prime[w]+1, w], {w, 128}]
%o A084310 (PARI) a(n) = gcd(prime(n)+1, n); \\ _Michel Marcus_, Jan 27 2017
%Y A084310 Cf. A084309, A084311, A084312, A084313, A084314, A084315, A084316.
%K A084310 nonn,easy
%O A084310 1,2
%A A084310 _Labos Elemer_, Jun 13 2003