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

A194108 Natural interspersion of A194106; a rectangular array, by antidiagonals.

Original entry on oeis.org

1, 4, 2, 9, 5, 3, 15, 10, 6, 7, 23, 16, 11, 12, 8, 33, 24, 17, 18, 13, 14, 45, 34, 25, 26, 19, 20, 21, 58, 46, 35, 36, 27, 28, 29, 22, 73, 59, 47, 48, 37, 38, 39, 30, 31, 90, 74, 60, 61, 49, 50, 51, 40, 41, 32, 109, 91, 75, 76, 62, 63, 64, 52, 53, 42, 43, 129, 110
Offset: 1

Views

Author

Clark Kimberling, Aug 15 2011

Keywords

Comments

See A194029 for definitions of natural fractal sequence and natural interspersion. Every positive integer occurs exactly once (and every pair of rows intersperse), so that as a sequence, A194108 is a permutation of the positive integers; its inverse is A194109.

Examples

			Northwest corner:
1...4...9...15...23
2...5...10..16...24
3...6...11..17...25
7...12..18..26...36
8...13..19..27...37
		

Crossrefs

Programs

  • Mathematica
    z = 40; g = Sqrt[3];
    c[k_] := Sum[Floor[j*g], {j, 1, k}];
    c = Table[c[k], {k, 1, z}]  (* A194106 *)
    f[n_] := If[MemberQ[c, n], 1, 1 + f[n - 1]]
    f = Table[f[n], {n, 1, 800}]  (* A194107 *)
    r[n_] := Flatten[Position[f, n]]
    t[n_, k_] := r[n][[k]]
    TableForm[Table[t[n, k], {n, 1, 8}, {k, 1, 7}]]
    p = Flatten[Table[t[k, n - k + 1], {n, 1, 16}, {k, 1, n}]]  (* A194108 *)
    q[n_] := Position[p, n]; Flatten[Table[q[n], {n, 1, 80}]]  (* A194109 *)

A194107 Natural fractal sequence of A194106.

Original entry on oeis.org

1, 2, 3, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17
Offset: 1

Views

Author

Clark Kimberling, Aug 15 2011

Keywords

Comments

See A194029 for definitions of natural fractal sequence and natural interspersion.

Crossrefs

Programs

  • Mathematica
    z = 40; g = Sqrt[3];
    c[k_] := Sum[Floor[j*g], {j, 1, k}];
    c = Table[c[k], {k, 1, z}]  (* A194106 *)
    f[n_] := If[MemberQ[c, n], 1, 1 + f[n - 1]]
    f = Table[f[n], {n, 1, 800}]  (* A194107 *)
    r[n_] := Flatten[Position[f, n]]
    t[n_, k_] := r[n][[k]]
    TableForm[Table[t[n, k], {n, 1, 8}, {k, 1, 7}]]
    p = Flatten[Table[t[k, n - k + 1], {n, 1, 16}, {k, 1, n}]]  (* A194108 *)
    q[n_] := Position[p, n]; Flatten[Table[q[n], {n, 1, 80}]]  (* A194109 *)

A022838 Beatty sequence for sqrt(3); complement of A054406.

Original entry on oeis.org

1, 3, 5, 6, 8, 10, 12, 13, 15, 17, 19, 20, 22, 24, 25, 27, 29, 31, 32, 34, 36, 38, 39, 41, 43, 45, 46, 48, 50, 51, 53, 55, 57, 58, 60, 62, 64, 65, 67, 69, 71, 72, 74, 76, 77, 79, 81, 83, 84, 86, 88, 90, 91, 93, 95, 96, 98, 100, 102, 103, 105, 107, 109, 110, 112
Offset: 1

Views

Author

Keywords

Comments

0 <= A144077(n) - a(n) <= 1. - Reinhard Zumkeller, Sep 09 2008
From Reinhard Zumkeller, Jan 20 2010: (Start)
A080757(n) = a(n+1) - a(n).
A171970(n) = floor(a(n)/2).
A171972(n) = a(A000290(n)). (End)
Numbers k>0 such that A194979(k+1) = A194979(k) + 1. - Clark Kimberling, Dec 02 2014
Powers of 2 (i.e, 1, 8, 32, 64, 128, 256, 512, 4096, 8192,...) appear at n=1, 5, 19, 37, 74, 148, 296, 2365, 4730, 18919, 75675, 151349, 302698, 605396, ... related to A293328. - R. J. Mathar, Jan 17 2025

Crossrefs

Cf. A080757 (first differences), A194106 (partial sums), A194028 (even bisection), A184796 (prime terms).
Cf. A026255, A054406 (complement).

Programs

Formula

a(n) = floor(n*sqrt(3)). - Reinhard Zumkeller, Jan 20 2010
a(n) = 2 * floor(n * (sqrt(3) - 1)) + floor(n * (2 - sqrt(3))) + 1. - Miko Labalan, Dec 03 2016

A362873 a(n) is the number of points with integer coordinates that are inside an equilateral triangle inscribed in a circle of radius n, the location of the triangle in the Oxy coordinate plane is described in the comments.

Original entry on oeis.org

1, 4, 12, 17, 33, 42, 64, 77, 105, 122, 158, 177, 219, 242, 292, 319, 375, 406, 470, 503, 573, 610, 688, 729, 813, 856, 948, 995, 1093, 1144, 1248, 1303, 1415, 1472, 1592, 1653, 1779, 1844, 1976, 2045, 2185, 2256, 2402, 2477, 2631, 2710, 2870, 2951, 3119, 3204, 3378, 3467, 3649
Offset: 1

Views

Author

Nicolay Avilov, May 07 2023

Keywords

Comments

An equilateral triangle is located in the coordinate plane Oxy so that its center coincides with the origin O, one of the vertices lies on the Oy axis.

Examples

			a(3) = 4 + 2*4 = 12;
a(4) = 5 + 2*6 = 17.
		

Crossrefs

Programs

  • Mathematica
    a[n_]:=(3n-2+Mod[n,2])/2+2Sum[Floor[(3n+Mod[n,2])/2-Sqrt[3]k],{k,Floor[Sqrt[3]n/2]}]; Array[a,53] (* Stefano Spezia, May 08 2023 *)

Formula

a(n) = (3*n - 2)/2 + 2*Sum_{k=1..floor(sqrt(3)*n/2)} floor(-sqrt(3)*k + 3*n/2) if n is even;
a(n) = (3*n - 1)/2 + 2*Sum_{k=1..floor(sqrt(3)*n/2)} floor(-sqrt(3)*k + (3*n + 1)/2) if n is odd.
Showing 1-4 of 4 results.