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-1 of 1 results.

A208327 Position of f(n) when the numbers f(j) and g(k) are jointly ranked, where f(j)=j + |cos j | and g(k)=k + |sin k|.

Original entry on oeis.org

1, 3, 6, 7, 9, 12, 14, 15, 18, 20, 21, 24, 26, 27, 30, 32, 33, 35, 38, 39, 41, 44, 45, 47, 50, 51, 53, 56, 58, 59, 62, 64, 65, 68, 70, 71, 74, 76, 77, 79, 82, 83, 85, 88, 89, 91, 94, 95, 97, 100, 102, 103, 106, 108, 109, 112, 114, 115, 118, 120, 121, 123, 126
Offset: 1

Views

Author

Clark Kimberling, Feb 26 2012

Keywords

Comments

For a guide to related sequences and a conjecture, see A206911.

Crossrefs

Programs

  • Mathematica
    f[n_] := N[n + Abs[Cos[n]]]; g[n_] := N[n + Abs[Sin[n]]]; z = 90;
    c = Table[f[n], {n, 1, z}];
    s = Table[g[n], {n, 1, z}];
    j = Sort[Union[c, s]];
    p[n_] := Position[j, f[n]];
    q[n_] := Position[j, g[n]];
    Flatten[Table[p[n], {n, 1, z}]]  (* A208327 *)
    Flatten[Table[q[n], {n, 1, z}]]  (* A185392 *)
Showing 1-1 of 1 results.