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.

A122415 Triangle T(n,k) for 1 < k < n read by rows, where T(n,k) = 1 if gcd(n,k) is prime, 0 otherwise.

This page as a plain text file.
%I A122415 #3 Mar 30 2012 17:27:49
%S A122415 0,1,0,0,0,0,1,1,1,0,0,0,0,0,0,1,0,0,0,1,0,0,1,0,0,1,0,0,1,0,1,1,1,0,
%T A122415 1,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,
%U A122415 1,0,1,1,1,0,1,0,1,0,0,1,0,1,1,0,0,1,1,0,1,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0
%N A122415 Triangle T(n,k) for 1 < k < n read by rows, where T(n,k) = 1 if gcd(n,k) is prime, 0 otherwise.
%C A122415 Triangle defined in A122414 without first column and main diagonal.
%o A122415 (PARI) {m=14; v=vector(m,x,vector(x)); for(n=1,m,for(k=1,n-1,if(isprime(gcd(n+2,k+1)),v[n][k]=1))); for(n=1,m,for(k=1,n,print1(v[n][k],",")))}
%Y A122415 Cf. A122414.
%Y A122415 Row sums are in A087625. [From _Klaus Brockhaus_, May 29 2009]
%K A122415 nonn,tabl
%O A122415 3,1
%A A122415 _Klaus Brockhaus_, Sep 03 2006