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.

Previous Showing 11-15 of 15 results.

A183137 a(n) = [1/s] + [2/s] + ... + [n/s], where s = (golden ratio)^2 = (3+sqrt(5))/2 and [] = floor.

Original entry on oeis.org

0, 0, 1, 2, 3, 5, 7, 10, 13, 16, 20, 24, 28, 33, 38, 44, 50, 56, 63, 70, 78, 86, 94, 103, 112, 121, 131, 141, 152, 163, 174, 186, 198, 210, 223, 236, 250, 264, 278, 293, 308, 324, 340, 356, 373, 390, 407, 425, 443, 462, 481, 500, 520, 540, 561, 582, 603, 625
Offset: 1

Views

Author

Clark Kimberling, Dec 26 2010

Keywords

Comments

A183136(n) + a(n) = A000217(n+1) (the triangular numbers).

Examples

			a(7) = 7 = 0+0+1+1+1+2+2.
		

Crossrefs

Programs

  • Mathematica
    Accumulate[With[{c=GoldenRatio^2},Floor[Range[60]/c]]]  (* Harvey P. Dale, Apr 20 2011 *)

Formula

a(n+1) = a(n) + n - A005206(n). - John Furey, Jun 03 2015

A379663 a(n) is the number of integer-sided triangles whose sides are in geometric progression with smallest side n.

Original entry on oeis.org

1, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 3, 1, 2, 1, 2, 1, 1, 1, 2, 4, 1, 2, 2, 1, 1, 1, 3, 1, 1, 1, 4, 1, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 3, 5, 4, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 2, 5, 1, 1, 1, 2, 1, 1, 1, 4, 1, 1, 4, 2, 1, 1, 1, 3, 6, 1, 1, 2, 1, 1, 1, 2
Offset: 1

Views

Author

Felix Huber, Jan 07 2025

Keywords

Comments

The integer sides of the triangles are n, n*r, n*r^2 with rational r >= 1. From the triangle inequality n + n*r >= n*r^2 follows r <= (1 + sqrt(5))/2 (golden ratio). Therefore 1 <= r = c/d < (1 + sqrt(5))/2, where c and d are coprimes and d^2 divides n.

Examples

			The a(18) = 2 integer-sided triangles whose sides form a geometric sequence are [18, 18, 18] with r = 1, [18, 24, 32] with r = 4/3.
The a(25) = 4 integer-sided triangles whose sides form a geometric sequence are [25, 25, 25] with r = 1, [25, 30, 36] with r = 6/5, [25, 35, 49] with r = 7/5, [25, 40, 64] with r = 8/5.
The a(36) = 4 integer-sided triangles whose sides form a geometric sequence are [36, 36, 36] with r = 1, [36, 54, 81] with r = 3/2, [36, 48, 64] with r = 4/3, [36, 42, 49] with r = 7/6.
See also the linked Maple program "Triangles for a given n".
		

Crossrefs

Programs

  • Maple
    A379663:=n->floor(2*expand(NumberTheory:-LargestNthPower(n,2))/(1+sqrt(5)))+1;
    seq(A379663(n),n=1..88);

Formula

a(n) = A060143(A000188(n)) + 1.

A134299 Maximal length of a sequence such that v(0)=n, v(k+2) = v(k)-v(k+1), v(k) >= 0.

Original entry on oeis.org

4, 5, 6, 5, 7, 6, 5, 8, 6, 7, 6, 6, 9, 6, 7, 8, 6, 7, 6, 7, 10, 6, 7, 8, 7, 9, 6, 7, 8, 7, 7, 8, 7, 11, 7, 7, 8, 7, 9, 8, 7, 10, 7, 7, 8, 7, 9, 8, 7, 8, 7, 9, 8, 7, 12, 8, 7, 8, 7, 9, 8, 7, 10, 8, 9, 8, 7, 11, 8, 7, 8, 8, 9, 8, 7, 10, 8, 9, 8, 8, 9, 8, 7, 10, 8, 9, 8, 8, 13, 8, 9, 8, 8, 9, 8, 8, 10, 8, 9, 8
Offset: 1

Views

Author

M. F. Hasler, Oct 18 2007

Keywords

Comments

This is also the maximal index at which n can occur in a Fibonacci-like sequence u(k+2) = u(k)+u(k+1) of nonnegative numbers.
A sequence of this length is obtained for v(0) = n, v(1) = A019446(n) = ceiling(n/tau) or A060143(n) = floor(n/tau).

Examples

			a(2007)=11 since there is no such sequence longer than v = (2007, 1240, 767, 473, 294, 179, 115, 64, 51, 13, 38).
		

Crossrefs

Programs

  • PARI
    A134299( goal, mi=0, mx=0, new=0 ) = { for( j=mi,goal, a=[goal,new=j]; while( mi<=new=a[ #a-1]-new, a=concat(a,new)); if( #a>mx, mx=#a)); mx }

A192002 Counting sequence for Wythoff AB-numbers smaller than n.

Original entry on oeis.org

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

Views

Author

Wolfdieter Lang, Jun 28 2011

Keywords

Comments

a(n) is the number of Wythoff AB-numbers from A003623 which are less than n.
a(n) is also the number of Wythoff A-pairs (two consecutive numbers which are both Wythoff A-numbers) not exceeding n.
a(n) is also the number of Wythoff BA-numbers (including 2 = B(A(1)) which however has Wythoff representation 0 for B(1)) not exceeding n-2. From the identity B(A(n)) = A(B(n)) - 1.
For the Wythoff representation of numbers see A189921 and A135817.

Examples

			a(9) = 2 = A(10) + A(9) - (3*9+1) = 16 + 14 - 28.
a(9) = 2 = z(9) - z(8) - 9 = 6 + 5 - 9.
There are a(9)=2 AB-numbers <9, namely 3=A(B(1)) and 8=A(B(B(1))).
There are a(9)=2 A-pairs <=9, namely 3,4 and 8,9.
There are a(9)=2 BA-numbers <=7, namely 2 (see the comment above) and 7 = B(A(B(1))).
		

Crossrefs

Cf. A000201 (Wythoff A-numbers), A001950 (Wythoff B-numbers), A003623 (Wythoff AB-numbers), A123740.

Programs

  • Python
    from math import isqrt
    def A192002(n): return (n+isqrt(m:=5*n**2)>>1)+(n+1+isqrt(m+10*n+5)>>1)-3*n-1 # Chai Wah Wu, Aug 10 2022

Formula

a(n) = Sum_{j=0..n-1} A123740(j), with A123740(0)=0.
a(n) = A(n+1) + A(n) - (3*n+1), with the Wythoff A-numbers A000201.
a(n) = z(n) + z(n-1) - n, with z(n) = A005206(n) = A060143(n+1) which counts A-numbers <=n.
Note that no floor function definitions are necessary.
A(n) (which is as Beatty sequence also floor(n*phi), with phi=(1+sqrt(5))/2) can be defined from the rabbit sequence A005614(n-1), n>=1, which results from a substitution rule, via z(n) by A(n):= z(n-1) + n, B(n):= A(n) + n.
a(n) = floor(n/phi) - floor((1+n)/(1+phi)). - Frank Ruskey, Nov 30 2011

A384947 Positive integers m for which A183136(m) != f(m), where f(m) = floor( (m*(m+1)/2)/phi - m/2 + 1/(2*phi) ) and phi = (1+sqrt(5))/2 is the golden ratio.

Original entry on oeis.org

15, 18, 36, 39, 41, 47, 49, 52, 91, 94, 96, 102, 103, 104, 107, 109, 123, 125, 128, 130, 136, 138, 141, 235, 238, 240, 246, 247, 248, 251, 252, 253, 267, 268, 269, 272, 273, 274, 277, 280, 281, 282, 285, 287, 303, 306, 322, 324, 327, 328
Offset: 1

Views

Author

Hoang Xuan Thanh, Jun 13 2025

Keywords

Comments

f(m) is an approximation to A183136(m) = Sum_{k=1..m} floor(k/phi) based on assuming the floor in each term decreases it by 1/2 from what is otherwise a triangular sum; and further offset + 1/(2*phi) in f(m) chosen to improve the accuracy of this approximation.
The actual values of frac(k/phi) can differ from 1/2 each by a net amount which is enough to make m a term of this sequence.

Examples

			41 is term, because A183136(41) = 512 != 511 = floor(((41^2+1)*phi - 41) / (2*phi^2)).
		

Crossrefs

Programs

  • Mathematica
    PositionIndex[MapIndexed[# != Floor[PolygonalNumber[#2[[1]]]/GoldenRatio - #2[[1]]/2 + 1/(2*GoldenRatio)] &, Accumulate[Floor[Range[500]/GoldenRatio]]]][True] (* Paolo Xausa, Jun 20 2025 *)
Previous Showing 11-15 of 15 results.