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!)
A060038 Triangle T(n,k) = 0 if k-th prime is a square mod the n-th prime, otherwise 1, for 1<=k<n. 1
1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 1, 1 (list; table; graph; refs; listen; history; text; internal format)
OFFSET
2,1
LINKS
EXAMPLE
1; 1,1; 0,1,1; 1,0,0,1; ... [The third row is 0,1,1 because mod 7, 2 is a square but 3 and 5 are not]
MATHEMATICA
t[n_, k_] := Boole[ Reduce[ Mod[Prime[k] - j^2, Prime[n]] == 0, j, Integers] === False]; Flatten[ Table[ t[n, k], {n, 2, 15}, {k, 1, n - 1}]] (* Jean-François Alcover, May 16 2012 *)
CROSSREFS
Cf. A060039.
Sequence in context: A253206 A133639 A323154 * A197774 A219009 A353519
KEYWORD
nonn,tabl,easy,nice
AUTHOR
N. J. A. Sloane, Mar 17 2001
EXTENSIONS
More terms from Larry Reeves (larryr(AT)acm.org), Mar 20 2001
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 17 20:17 EDT 2024. Contains 371767 sequences. (Running on oeis4.)