Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A116602
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A116602 Values of n such that p(2n) mod 12 = 5, where p(j) denotes the j-th prime. +0
1
5, 8, 12, 13, 15, 20, 30, 31, 33, 49, 51, 52, 54, 58, 63, 70, 71, 74, 76, 79, 80, 81, 85, 88, 89, 92, 93, 97, 98, 103, 106, 109, 110, 117, 119, 126, 134, 135, 144, 145, 148, 149, 151, 156, 160, 165, 166, 169, 171, 175, 178, 181, 191, 192, 196, 199, 200, 201, 202, 204 (list; graph; listen)
OFFSET

0,1

COMMENT

These eight sets of integers based on the {1,5,7,11} endings in modulo 12 comes from trying to construct sines and cosines using this sort of partitioning. f[n_Integer?Positive, 1] := If[Mod[Prime[n], 12] - 1 == 0, n!, 0] f[n_Integer?Positive, 2] := If[Mod[Prime[n], 12] - 5 == 0, n!, 0] f[n_Integer?Positive, 3] := If[Mod[Prime[n], 12] - 7 == 0, n!, 0] f[n_Integer?Positive, 4] := If[Mod[Prime[n], 12] - 11 == 0, n!, 0] CosM[x_, m_Integer?Positive] := Sum[If[f[2*n, m] == 0, 0, (-1)^n*x^(2*n)/f[2*n, m]], {n, 1, 200}] SinM[x_, m_Integer?Positive] := Sum[If[f[2*n + 1, m] == 0, 0, (-1)^n*x^(2* n + 1)/f[2*n + 1, m]], {n, 1, 200}]

FORMULA

a(n) = If [ Mod[ Prime[2*n],12]=5,n]

EXAMPLE

33 is in the sequence because the 66-th prime is 317 and 317 mod 12=5.

MAPLE

a:=proc(n) if ithprime(2*n) mod 12 = 5 then n else fi end: seq(a(n), n=1..220);

MATHEMATICA

a[1] = Flatten[Table[If[Mod[Prime[2*n], 12] - 5 == 0, n, {}], {n, 1, 100}]]

CROSSREFS

Adjacent sequences: A116599 A116600 A116601 this_sequence A116603 A116604 A116605

Sequence in context: A133522 A133269 A076635 this_sequence A079896 A133315 A003658

KEYWORD

nonn,uned,probation,obsc

AUTHOR

Roger L. Bagula (rlbagulatftn(AT)yahoo.com), Mar 29 2006

EXTENSIONS

Edited by njas, Apr 05 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 May 16 23:01 EDT 2008. Contains 139884 sequences.


AT&T Labs Research