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.

Showing 1-3 of 3 results.

A184792 Numbers k such that floor(k*r) is prime, where r = golden ratio=(1+sqrt(5))/2.

Original entry on oeis.org

2, 7, 11, 12, 18, 23, 27, 33, 37, 38, 42, 44, 49, 60, 63, 64, 70, 79, 81, 85, 86, 101, 107, 111, 112, 122, 123, 131, 138, 142, 148, 149, 159, 163, 168, 174, 175, 190, 194, 196, 205, 215, 216, 222, 227, 231, 237, 241, 248, 253, 259, 268, 274, 278, 283, 285, 289, 301, 304, 309, 311, 315, 322, 348, 352, 353, 357, 363, 367, 372, 379, 383, 390, 398, 400, 404, 409, 416, 419, 457, 468, 478, 487, 493, 500, 508, 509, 519, 530, 531, 545, 546, 561, 568, 582, 589, 598
Offset: 1

Views

Author

Clark Kimberling, Jan 22 2011

Keywords

Examples

			The sequence L(n)=floor(n*r) begins with
1,3,4,6,8,9,11,12,14,16,17,...,
which includes the primes L(2)=3, L(7)=11,...
		

Crossrefs

Programs

  • Mathematica
    r=(1+5^(1/2))/2; s=r/(r-1);
    a[n_]:=Floor [n*r];  (* A095280 *)
    b[n_]:=Floor [n*s];  (* A095281 *)
    Table[a[n],{n,1,120}]
    t1={};Do[If[PrimeQ[a[n]], AppendTo[t1,a[n]]],{n,1,600}];t1
    t2={};Do[If[PrimeQ[a[n]], AppendTo[t2,n]],{n,1,600}];t2
    t3={};Do[If[MemberQ[t1,Prime[n]],AppendTo[t3,n]],{n,1,300}];t3
    t4={};Do[If[PrimeQ[b[n]], AppendTo[t4,b[n]]],{n,1,600}];t4
    t5={};Do[If[PrimeQ[b[n]], AppendTo[t5,n]],{n,1,600}];t5
    t6={};Do[If[MemberQ[t4,Prime[n]],AppendTo[t6,n]],{n,1,300}];t6
    (* The lists t1, t2, t3, t4, t5, t6 match the sequences
    A095280, A184792, A184793, A095281, A184794, A184795 *)
    Select[Range[600],PrimeQ[Floor[GoldenRatio #]]&] (* Harvey P. Dale, Mar 28 2024 *)

A184793 Numbers m such that prime(m) is of the form floor(k*r), where r=(1+sqrt(5))/2; complement of A180736.

Original entry on oeis.org

2, 5, 7, 8, 10, 12, 14, 16, 17, 18, 19, 20, 22, 25, 26, 27, 30, 31, 32, 33, 34, 38, 40, 41, 42, 45, 46, 47, 48, 50, 52, 53, 55, 56, 58, 60, 61, 63, 65, 66, 67, 69, 70, 72, 73, 74, 76, 77, 79, 80, 81, 84, 86, 87, 88, 89, 91, 93, 94, 95, 96, 97, 98, 103, 104, 105, 106, 107, 108, 110, 112, 114, 115, 117, 118, 119, 121, 122, 123, 131, 134, 137, 138, 139, 140, 142, 143, 146, 148, 149, 152, 153, 155, 157, 160, 162, 163
Offset: 1

Views

Author

Clark Kimberling, Jan 22 2011

Keywords

Examples

			See A184792.
		

Crossrefs

Programs

A184794 Numbers k such that floor(k*s) is prime, where s = (3 + sqrt(5))/2.

Original entry on oeis.org

1, 2, 3, 5, 9, 12, 16, 18, 28, 32, 34, 41, 42, 57, 58, 60, 64, 73, 74, 87, 89, 96, 103, 106, 112, 119, 129, 135, 145, 152, 161, 165, 168, 177, 183, 200, 207, 209, 213, 229, 232, 236, 245, 252, 261, 264, 268, 271, 275, 278, 280, 284, 287, 291, 294, 310, 316, 317, 326, 330, 335, 339, 348, 355, 358, 362, 371, 381, 387, 390, 394, 397, 401, 417, 427, 429, 440, 456, 459, 465, 481, 488, 497, 498, 504, 507, 520, 546, 550, 553, 555, 562, 566, 568, 569, 582, 585, 592
Offset: 1

Views

Author

Clark Kimberling, Jan 22 2011

Keywords

Examples

			See A184792.
		

Crossrefs

Programs

Showing 1-3 of 3 results.