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-10 of 31 results. Next

A190430 Positions of 2 in A190427.

Original entry on oeis.org

3, 6, 8, 11, 16, 19, 21, 24, 29, 32, 37, 40, 42, 45, 50, 53, 55, 58, 61, 63, 66, 71, 74, 76, 79, 84, 87, 92, 95, 97, 100, 105, 108, 110, 113, 116, 118, 121, 126, 129, 131, 134, 139, 142, 144, 147, 150, 152, 155, 160, 163, 165, 168, 173, 176, 181, 184, 186, 189, 194, 197, 199, 202, 205, 207, 210, 215
Offset: 1

Views

Author

Clark Kimberling, May 10 2011

Keywords

Comments

See A190427.

Crossrefs

Programs

  • Mathematica
    r = GoldenRatio; b = 2; c = 1;
    f[n_] := Floor[(b*n + c)*r] - b*Floor[n*r] - Floor[c*r];
    t = Table[f[n], {n, 1, 320}] (* A194277 *)
    Flatten[Position[t, 0]] (* A190428 *)
    Flatten[Position[t, 1]] (* A190429 *)
    Flatten[Position[t, 2]] (* A190430 *)

A190428 Positions of 0 in A190427.

Original entry on oeis.org

5, 10, 13, 18, 26, 31, 34, 39, 47, 52, 60, 65, 68, 73, 81, 86, 89, 94, 99, 102, 107, 115, 120, 123, 128, 136, 141, 149, 154, 157, 162, 170, 175, 178, 183, 188, 191, 196, 204, 209, 212, 217, 225, 230, 233, 238, 243, 246, 251, 259, 264, 267, 272, 280, 285, 293, 298, 301, 306, 314, 319
Offset: 1

Views

Author

Clark Kimberling, May 10 2011

Keywords

Comments

See A190427.

Crossrefs

Programs

  • Mathematica
    r = GoldenRatio; b = 2; c = 1;
    f[n_] := Floor[(b*n + c)*r] - b*Floor[n*r] - Floor[c*r];
    t = Table[f[n], {n, 1, 320}] (* A190427 *)
    Flatten[Position[t, 0]] (* A190428 *)
    Flatten[Position[t, 1]] (* A190429 *)
    Flatten[Position[t, 2]] (* A190430 *)

A190429 Positions of 1 in A190427.

Original entry on oeis.org

1, 2, 4, 7, 9, 12, 14, 15, 17, 20, 22, 23, 25, 27, 28, 30, 33, 35, 36, 38, 41, 43, 44, 46, 48, 49, 51, 54, 56, 57, 59, 62, 64, 67, 69, 70, 72, 75, 77, 78, 80, 82, 83, 85, 88, 90, 91, 93, 96, 98, 101, 103, 104, 106, 109, 111, 112, 114, 117, 119, 122, 124, 125, 127, 130, 132, 133, 135, 137, 138, 140, 143, 145, 146, 148, 151, 153, 156, 158
Offset: 1

Views

Author

Clark Kimberling, May 10 2011

Keywords

Comments

See A190427.

Crossrefs

Programs

  • Mathematica
    r = GoldenRatio; b = 2; c = 1;
    f[n_] := Floor[(b*n + c)*r] - b*Floor[n*r] - Floor[c*r];
    t = Table[f[n], {n, 1, 320}] (* A190427 *)
    Flatten[Position[t, 0]] (* A190428 *)
    Flatten[Position[t, 1]] (* A190429 *)
    Flatten[Position[t, 2]] (* A190430 *)

A190487 a(n) = [(bn+c)r]-b[nr]-[cr], where (r,b,c)=(sqrt(2),3,0) and []=floor.

Original entry on oeis.org

1, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 1, 2, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 2, 0, 1, 2, 0, 2, 0
Offset: 1

Views

Author

Clark Kimberling, May 11 2011

Keywords

Comments

Write a(n) = [(bn+c)r]-b[nr]-[cr]. If r>0 and b and c are integers satisfying b>=2 and 0<=c<=b-1, then 0<=a(n)<=b. The positions of 0 in the sequence a are of interest, as are the position sequences for 1,2,...,b. These b+1 position sequences comprise a partition of the positive integers.
Examples:
(golden ratio,2,1): A190427-A190430
(sqrt(2),2,0): A190480
(sqrt(2),2,1): A190483-A190486
(sqrt(2),3,0): A190487-A190490
(sqrt(2),3,1): A190491-A190495
(sqrt(2),3,2): A190496-A190500

Crossrefs

Programs

  • Mathematica
    r = Sqrt[2]; b = 3; c = 0;
    f[n_] := Floor[(b*n + c)*r] - b*Floor[n*r] - Floor[c*r];
    t = Table[f[n], {n, 1, 200}]  (* A190487 *)
    Flatten[Position[t, 0]]   (* A190488 *)
    Flatten[Position[t, 1]]   (* A190489 *)
    Flatten[Position[t, 2]]   (* A190490 *)

A190491 a(n) = [(bn+c)r]-b[nr]-[cr], where (r,b,c)=(sqrt(2),3,1) and []=floor.

Original entry on oeis.org

1, 2, 1, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 0, 1, 3, 1, 2, 0, 1, 3, 1, 2, 0, 2, 0, 1, 2, 1, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 0, 1, 2, 1, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 0, 1, 3, 1, 2, 0, 1, 3, 1, 2, 0, 2, 0, 1, 2, 1, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 2, 0, 2, 0
Offset: 1

Views

Author

Clark Kimberling, May 11 2011

Keywords

Comments

Write a(n)=[(bn+c)r]-b[nr]-[cr]. If r>0 and b and c are integers satisfying b>=2 and 0<=c<=b-1, then 0<=a(n)<=b. The positions of 0 in the sequence a are of interest, as are the position sequences for 1,2,...,b. These b+1 position sequences comprise a partition of the positive integers.
Examples:
(golden ratio,2,1): A190427-A190430
(sqrt(2),2,0): A190480, A120743, A170749
(sqrt(2),2,1): A190483-A190486
(sqrt(2),3,0): A190487-A190490
(sqrt(2),3,1): A190491-A190495
(sqrt(2),3,2): A190496-A190500

Crossrefs

Programs

  • Mathematica
    r = Sqrt[2]; b = 3; c = 1;
    f[n_] := Floor[(b*n + c)*r] - b*Floor[n*r] - Floor[c*r];
    t = Table[f[n], {n, 1, 200}]  (* A190491 *)
    Flatten[Position[t, 0]]   (* A190492 *)
    Flatten[Position[t, 1]]   (* A190493 *)
    Flatten[Position[t, 2]]   (* A190494 *)
    Flatten[Position[t, 3]]   (* A190495 *)

A190496 a(n) = [(bn+c)r]-b[nr]-[cr], where (r,b,c)=(sqrt(2),3,2) and []=floor.

Original entry on oeis.org

2, 3, 1, 2, 1, 2, 3, 1, 3, 1, 2, 3, 1, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 3, 1, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 3, 1, 3, 1, 2, 3, 2, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 3, 1, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 3, 1, 3, 1, 2, 3, 2, 3, 1, 2, 1, 2, 3, 1, 2, 1, 2, 3, 1, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 3, 1, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 3, 1, 3, 1, 2, 3, 2, 3, 1, 2, 0, 2, 3, 1, 2, 1, 2, 3, 1, 3, 1, 2, 0
Offset: 1

Views

Author

Clark Kimberling, May 11 2011

Keywords

Comments

Write a(n)=[(bn+c)r]-b[nr]-[cr]. If r>0 and b and c are integers satisfying b>=2 and 0<=c<=b-1, then 0<=a(n)<=b. The positions of 0 in the sequence a are of interest, as are the position sequences for 1,2,...,b. These b+1 position sequences comprise a partition of the positive integers.
Examples:
(golden ratio,2,1): A190427-A190430
(sqrt(2),2,0): A190480
(sqrt(2),2,1): A190483-A190486
(sqrt(2),3,0): A190487-A190490
(sqrt(2),3,1): A190491-A190495
(sqrt(2),3,2): A190496-A190500

Crossrefs

Programs

  • Mathematica
    r = Sqrt[2]; b = 3; c = 2;
    f[n_] := Floor[(b*n + c)*r] - b*Floor[n*r] - Floor[c*r];
    t = Table[f[n], {n, 1, 200}]  (* A190496 *)
    Flatten[Position[t, 0]]   (* A190497 *)
    Flatten[Position[t, 1]]   (* A190498 *)
    Flatten[Position[t, 2]]   (* A190499 *)
    Flatten[Position[t, 3]]   (* A190500 *)

A190483 a(n) = [(bn+c)r]-b[nr]-[cr], where (r,b,c)=(sqrt(2),2,1) and []=floor.

Original entry on oeis.org

1, 2, 0, 1, 0, 1, 2, 1, 1, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 1, 1, 0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 1, 1, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 1, 1, 0, 1, 2, 1, 1, 0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 1, 1, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 1, 1, 0, 1, 2, 1, 2, 0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 1, 1, 0, 1, 0, 1, 2, 0, 1, 0, 1, 2, 1, 1, 0, 1, 2, 1, 2, 0
Offset: 1

Views

Author

Clark Kimberling, May 11 2011

Keywords

Comments

Write a(n)=[(bn+c)r]-b[nr]-[cr]. If r>0 and b and c are integers satisfying b>=2 and 0<=c<=b-1, then 0<=a(n)<=b. The positions of 0 in the sequence a are of interest, as are the position sequences for 1,2,...,b. These b+1 position sequences comprise a partition of the positive integers.
Examples:
(golden ratio,2,1): A190427-A190430
(sqrt(2),2,0): A190480
(sqrt(2),2,1): A190483-A190486
(sqrt(2),3,0): A190487-A190490
(sqrt(2),3,1): A190491-A190495
(sqrt(2),3,2): A190496-A190500

Crossrefs

Programs

  • Mathematica
    r = Sqrt[2]; b = 2; c = 1;
    f[n_] := Floor[(b*n + c)*r] - b*Floor[n*r] - Floor[c*r];
    t = Table[f[n], {n, 1, 200}]  (* A190483 *)
    Flatten[Position[t, 0]]   (* A190484 *)
    Flatten[Position[t, 1]]   (* A190485 *)
    Flatten[Position[t, 2]]   (* A190486 *)
  • Python
    from sympy import sqrt, floor
    r=sqrt(2)
    def a(n): return floor((2*n + 1)*r) - 2*floor(n*r) - floor(r)
    print([a(n) for n in range(1, 501)]) # Indranil Ghosh, Jul 02 2017

A190544 a(n) = [(bn+c)r]-b[nr]-[cr], where (r,b,c)=(sqrt(2),4,0) and []=floor.

Original entry on oeis.org

1, 3, 0, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 0, 1, 3, 1, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 3, 1, 3, 0, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 0, 1, 3, 0, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 0, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 0
Offset: 1

Views

Author

Clark Kimberling, May 12 2011

Keywords

Comments

Write a(n)=[(bn+c)r]-b[nr]-[cr]. If r>0 and b and c are integers satisfying b>=2 and 0<=c<=b-1, then 0<=a(n)<=b. The positions of 0 in the sequence a are of interest, as are the position sequences for 1,2,...,b. These b+1 position sequences comprise a partition of the positive integers.
Examples:
(golden ratio,2,1): A190427-A190430
(sqrt(2),2,0): A190480
(sqrt(2),2,1): A190483-A190486
(sqrt(2),3,0): A190487-A190490
(sqrt(2),3,1): A190491-A190495
(sqrt(2),3,2): A190496-A190500
(sqrt(2),4,c): A190544-A190566

Crossrefs

Programs

  • Mathematica
    r = Sqrt[2]; b = 4; c = 0;
    f[n_] := Floor[(b*n + c)*r] - b*Floor[n*r] - Floor[c*r];
    t = Table[f[n], {n, 1, 200}] (* A190544 *)
    Flatten[Position[t, 0]]      (* A190545 *)
    Flatten[Position[t, 1]]      (* A190546 *)
    Flatten[Position[t, 2]]      (* A190547 *)
    Flatten[Position[t, 3]]      (* A190548 *)

Formula

a(n) = [4nr] - 4*[nr], where r=sqrt(2).

A190440 [(bn+c)r]-b[nr]-[cr], where (r,b,c)=(golden ratio,4,0) and []=floor.

Original entry on oeis.org

2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 2, 1, 3, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 0, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 3, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 0, 2, 1, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 0, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 3, 1, 0, 2, 1, 3, 2, 0, 2, 1, 3, 2, 0
Offset: 1

Views

Author

Clark Kimberling, May 10 2011

Keywords

Comments

Write a(n)=[(bn+c)r]-b[nr]-[cr]. If r>0 and b and c are integers satisfying b>=2 and 0<=c<=b-1, then 0<=a(n)<=b. The positions of 0 in the sequence a are of interest, as are the position sequences for 1,2,...,b. These b+1 position sequences comprise a partition of the positive integers.
Examples:
(golden ratio,2,0): A078588, A005653, A005652
(golden ratio,2,1): A190427-A190430
(golden ratio,3,0): A140397-A190400
(golden ratio,3,1): A140431-A190435
(golden ratio,3,2): A140436-A190439

Crossrefs

Programs

  • Mathematica
    r = GoldenRatio;
    f[n_] := Floor[4*n*r] - 4*Floor[n*r];
    t = Table[f[n], {n, 1, 320}] (* A190440 *)
    Flatten[Position[t, 0]]  (* A190240 *)
    Flatten[Position[t, 1]]  (* A190249 *)
    Flatten[Position[t, 2]]  (* A190442 *)
    Flatten[Position[t, 3]]  (* A190443 *)
    Flatten[Position[t, 4]]  (* A190248 *)

Formula

a(n)=[4nr]-4[nr], where r=golden ratio.

A190549 a(n) = [(bn+c)r]-b[nr]-[cr], where (r,b,c)=(sqrt(2),4,1) and []=floor.

Original entry on oeis.org

2, 3, 1, 3, 0, 2, 4, 1, 3, 0, 2, 4, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 4, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 4, 1, 3, 1, 2, 4, 2, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 4, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 4, 1, 3, 1, 2, 4, 2, 3, 1, 3, 0, 2, 3, 1, 3, 0, 2, 4, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 4, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 4, 1, 3, 1, 2, 4, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 4, 1, 3, 1, 2, 0, 2, 3, 1, 3, 0, 2, 4, 1, 3
Offset: 1

Views

Author

Clark Kimberling, May 12 2011

Keywords

Comments

Write a(n) = [(bn+c)r]-b[nr]-[cr]. If r>0 and b and c are integers satisfying b>=2 and 0<=c<=b-1, then 0<=a(n)<=b. The positions of 0 in the sequence a are of interest, as are the position sequences for 1,2,...,b. These b+1 position sequences comprise a partition of the positive integers.
Examples:
(golden ratio,2,1): A190427-A190430
(sqrt(2),2,0): A190480-A190482
(sqrt(2),2,1): A190483-A190486
(sqrt(2),3,0): A190487-A190490
(sqrt(2),3,1): A190491-A190495
(sqrt(2),3,2): A190496-A190500
(sqrt(2),4,c): A190544-A190566

Crossrefs

Programs

  • Mathematica
    r = Sqrt[2]; b = 4; c = 1;
    f[n_] := Floor[(b*n + c)*r] - b*Floor[n*r] - Floor[c*r];
    t = Table[f[n], {n, 1, 200}] (* A190549 *)
    Flatten[Position[t, 0]]          (* A190550 *)
    Flatten[Position[t, 1]]          (* A190551 *)
    Flatten[Position[t, 2]]          (* A190552 *)
    Flatten[Position[t, 3]]          (* A190553 *)
    Flatten[Position[t, 4]]          (* A190554 *)
Showing 1-10 of 31 results. Next