Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A118682
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A118682 A triangular factor function based on the modulo 10 last digit multiplication behavior of the primes ( modeled on Jacobi symbols and Legendre symbols). +0
1
0, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 2, 0, 2, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 1, 0, 2, 0, 2, 1, 2, 2, 1, 0, 1, 0, 1, 2, 1, 1, 2, 1, 0, 2, 0, 2, 1, 2, 2, 1, 2, 1 (list; table; graph; listen)
OFFSET

0,12

COMMENT

This functions gives an op-art pattern from the primes as: bout = Table[f[n, m], {n, 1, 60}, {m, 1, 60}]; ListDensityPlot[bout, Mesh -> False]

FORMULA

a(n,m) = If[(Mod[Prime[n]*Prime[m], 10] - 1 == 0) || (Mod[Prime[n]*Prime[m], 10] - 9 == 0), 1, If[(Mod[Prime[n]*Prime[m], 10] - 3 == 0) || (Mod[Prime[n]*Prime[m], 10] - 7 == 0), 2, 0]]

EXAMPLE

0

0, 1

0, 0, 0

0, 1, 0, 1

0, 2, 0, 2, 1

0, 1, 0, 1, 2, 1

0, 1, 0, 1, 2, 1, 1

0, 2, 0, 2, 1, 2, 2, 1

0, 1, 0, 1, 2, 1, 1, 2, 1

0, 2, 0, 2, 1, 2, 2, 1, 2, 1

MATHEMATICA

f[n_, m_] = If[(Mod[Prime[n]*Prime[m], 10] - 1 == 0) || (Mod[Prime[n]*Prime[m], 10] - 9 == 0), 1, If[(Mod[Prime[n]*Prime[m], 10] - 3 == 0) || (Mod[Prime[n]*Prime[m], 10] - 7 == 0), 2, 0]] a = Table[Table[f[n, m], {n, 1, m}], {m, 1, 10}] aout = Flatten[a]

CROSSREFS

Sequence in context: A112604 A072627 A069848 this_sequence A083054 A112300 A049239

Adjacent sequences: A118679 A118680 A118681 this_sequence A118683 A118684 A118685

KEYWORD

nonn,tabl,uned

AUTHOR

Roger L. Bagula (rlbagulatftn(AT)yahoo.com), May 19 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research