login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A122414 Triangle T(n,k) for 1 <= k <= n read by rows, where T(n,k) = 1 if gcd(n,k) is prime, 0 otherwise. 3
0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
T(n,n) = A010051(n).
T(n,1) = 0.
EXAMPLE
The triangle starts
0
0 1
0 0 1
0 1 0 0
0 0 0 0 1
0 1 1 1 0 0
0 0 0 0 0 0 1
0 1 0 0 0 1 0 0
0 0 1 0 0 1 0 0 0
0 1 0 1 1 1 0 1 0 0
0 0 0 0 0 0 0 0 0 0 1
0 1 1 0 0 0 0 0 1 1 0 0
0 0 0 0 0 0 0 0 0 0 0 0 1
0 1 0 1 0 1 1 1 0 1 0 1 0 0
0 0 1 0 1 1 0 0 1 1 0 1 0 0 0
MAPLE
A122414 := proc(n, k)
if isprime(igcd(n, k)) then
1;
else
0;
end if;
end proc: # R. J. Mathar, Apr 21 2021
PROG
(PARI) {m=14; v=vector(m, x, vector(x)); for(n=1, m, for(k=1, n, if(isprime(gcd(n, k)), v[n][k]=1))); for(n=1, m, for(k=1, n, print1(v[n][k], ", ")))}
CROSSREFS
Cf. A010051 (diagonal), A122415 (sub-triangle).
Row sums are in A117494. [From Klaus Brockhaus, May 29 2009]
Sequence in context: A289128 A272664 A143518 * A288216 A189628 A289239
KEYWORD
nonn,tabl,easy
AUTHOR
Klaus Brockhaus, Sep 03 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 10:22 EDT 2024. Contains 371967 sequences. (Running on oeis4.)