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.

A373021 Decimal expansion of Sum_{k>=0} sin(k*Pi/5)/2^k.

Original entry on oeis.org

6, 6, 6, 4, 4, 8, 8, 7, 0, 8, 1, 2, 3, 1, 3, 9, 1, 4, 8, 6, 1, 6, 3, 5, 7, 3, 2, 8, 5, 0, 1, 7, 8, 6, 5, 3, 2, 0, 0, 7, 9, 1, 7, 4, 2, 0, 3, 2, 8, 9, 7, 8, 9, 4, 2, 0, 2, 0, 7, 7, 9, 5, 1, 1, 1, 4, 9, 3, 4, 8, 6, 5, 9, 3, 7, 7, 1, 6, 8, 8, 6, 5, 3, 8, 7, 4
Offset: 0

Views

Author

Clark Kimberling, Jun 09 2024

Keywords

Comments

Guide to related sequences:
sequence summand approximation minimal polynomial
(a(n)) sin(k*Pi/5)/2^k 0.6664488708 5 - 65*x^2 + 121*x^4
A373022 sin(2*k*Pi/5)/2^k 0.5053526528 5 - 265*x^2 + 961*x^4
A373023 sin(3*k*Pi/5)/2^k 0.3050180080 5 - 65*x^2 + 121*x^4
A373024 sin(4*k*Pi/5)/2^k 0.1427344344 5 - 265*x^2 + 961*x^4
A373025 cos(k*Pi/5)/2^k 1.3503729060 11 - 23*x + 11*x^2
A373026 cos(2*k*Pi/5)/2^k 0.8985194182 19 - 49*x + 31*x^2
A373027 cos(3*k*Pi/5)/2^k 0.7405361848 11 - 23*x + 11*x^2
A373028 cos(4*k*Pi/5)/2^k 0.6821257430 19 - 49*x + 31*x^2

Examples

			0.666448870812313914861635732850178653200791742032...
		

Crossrefs

Programs

  • Mathematica
    {b, m, h} = {2, 5, 1}; s = Sum[Sin[ h  k  Pi/m]/b^k, {k, 0, Infinity}]
    d = N[s, 100]
    First[RealDigits[d], 100]

Formula

Equals sqrt(10 - 2*sqrt(5)) / (8 - 2*sqrt(5)).
Equals (-1)*Sum_{k>=0} sin(9*k*Pi/5)/2^k.
Peter J. C. Moses (May 22 2024) found the following generalized summation identities for the eight sequences in Comments and many other sequences:
Sum_{k>=0} sin(h*k + Pi/m)/b^(k+r) = b^(1-r)*(b*sin(Pi/m) + sin(h - Pi/m)/(1 + b^2 - 2*b*cos*(Pi/m)).
Sum_{k>=0} cos(h*k + Pi/m)/b^(k+r) = b^(1-r)*(b*cos(Pi/m) + cos(h - Pi/m)/(1 + b^2 - 2*b*cos*(Pi/m)).

A373028 a(n) is the least positive integer k such that 3*n^2 + 2*n + k^2 is a square.

Original entry on oeis.org

2, 3, 4, 5, 6, 1, 8, 9, 10, 2, 12, 13, 14, 3, 16, 10, 18, 4, 20, 21, 2, 5, 24, 25, 10, 6, 28, 29, 30, 7, 32, 33, 34, 8, 36, 3, 38, 9, 20, 41, 42, 10, 44, 45, 46, 11, 48, 49, 50, 12, 4, 53, 54, 13, 56, 33, 58, 14, 60, 23, 62, 15, 64, 65, 66, 5, 68, 69, 70, 17, 72, 73, 74, 18, 76, 49, 78, 19, 80, 33, 6
Offset: 1

Views

Author

Claude H. R. Dequatre, May 20 2024

Keywords

Comments

Many runs of consecutive integers appear in the sequence. The first ones are [2,3,4,5,6], [8,9,10], [12,13,14], [20,21], [24,25], [28,29,30], ...
The scatterplot shows an interesting structure where distinct sets of terms can be seen on three straight lines. The greater the slope of the line, the higher the density of terms. The remaining terms are more randomly distributed between the three lines.
More detailed observations:
For the line of lowest slope, the term and term index parity alternates from one term to the next and if the term index is even, the term is odd and reciprocally. Terms of the same set and their indices are in arithmetic progression of respective common difference of 1 and 15.
For the line of medium slope, all term indices are even and the term parity alternates from one term to the next. Terms of the same set and their indices are in arithmetic progression of respective common difference 1 and 4.
For the line of greatest slope, if the term index is even, then the term is odd and reciprocally. All terms are equal to their index + 1.
There are no fixed points a(n) = n since 3*n^2+2*n + n^2 = (2*n)^2 + 2*n falls between (2*n)^2 and (2*n+1)^2, so not square.

Examples

			a(1) = 2 because 3*1^2 + 2*1 = 5 and 5 + 1^2 is not a square, but 5 + 2^2 is. So, 2 is a term.
a(2) = 3 because 3*2^2 + 2*2 = 16 and 16 + 1^2 and 16 + 2^2 are not squares,but 16 + 3^2 is. So, 3 is a term.
		

Crossrefs

Programs

  • PARI
    a(n) = my(m=3*n^2+2*n, k=1); while (!issquare(m+k^2), k++); k; \\ Michel Marcus, May 20 2024

A373016 a(n) is the least positive integer k such that 3*n^2 + 2*n + k is a square.

Original entry on oeis.org

4, 9, 3, 8, 15, 1, 8, 17, 28, 4, 15, 28, 43, 9, 24, 41, 60, 16, 35, 56, 4, 25, 48, 73, 11, 36, 63, 92, 20, 49, 80, 113, 31, 64, 99, 9, 44, 81, 120, 20, 59, 100, 143, 33, 76, 121, 3, 48, 95, 144, 16, 65, 116, 169, 31, 84, 139, 196, 48, 105, 164, 8, 67, 128, 191, 25, 88, 153, 220, 44, 111, 180
Offset: 1

Views

Author

Claude H. R. Dequatre, May 20 2024

Keywords

Comments

The scatterplot shows an interesting crosshatch structure where all terms are at the intersection of ascending and descending hatches.
Terms on each hatch are quite well fitted by a polynomial of degree 2.
For terms on ascending hatches, the parity of the term indices does not change on a given hatch but alternates from one hatch to the next and on the same hatch, the parity of two consecutive terms alternates.
For terms on descending hatches, the parity of the indices of two consecutive terms alternates on the same hatch and that of terms does not change on the same hatch but alternates from one hatch to the next.
All squares exclusively are in ascending order on the same ascending hatch at n = 6, 10, 14, 18, 22, ... but some squares can be also found at the intersection of other hatches.
The first differences of the indices of the terms located on ascending and descending hatches are respectively equal to 4 and 3. For terms that are on the ascending and descending hatches, the differences of order 2 quickly become constant and equal to 2 and 4, respectively.
The fixed points begin 3, 48, 675, 9408, etc. They are all divisible by 3 and their parity seems to alternate. It appears that they are the positive terms of A007654.

Examples

			a(1) = 4 because 3*1^2 + 2*1 = 5 and 5 + 1, 5 + 2, 5 + 3 are not squares, but 5 + 4 is. So, 4 is a term.
a(2) = 9 because 3*2^2 + 2*2 = 16 and 16 + 1, 16 + 2, 16 + 3, 16 + 4, 16 + 5, 16 + 6, 16 + 7, 16 + 8 are not squares, but 16 + 9 is. So, 9 is a term.
		

Crossrefs

Sequences with similar scatterplot and pin plot graphs: A141130, A141131, A141134, A141135.

Programs

Formula

a(n) is the smallest square greater than 3*n^2 + 2*n, minus 3*n^2 + 2*n. - Charles R Greathouse IV, May 21 2024
1 <= a(n) <= floor(sqrt(12)*n) + 3. I believe both bounds are tight infinitely often. - Charles R Greathouse IV, May 21 2024
a(n) = A080883(A045944(n)). - Michel Marcus, May 22 2024
Showing 1-3 of 3 results.