A380868 Number of distinct solutions {n1, n2, n3, n4} to the problem of forming a rectangle with sides made of linked rods of length 1, ..., n.
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, 0, 1, 0, 0, 3, 0, 0, 0, 0, 1, 0, 0, 6, 0, 0, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 1, 0, 0, 3, 0, 0, 0, 3, 3, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 6, 0, 0, 0, 10, 0, 0, 3, 0, 0, 0, 0, 3, 0, 0, 1, 0, 0, 0, 15
Offset: 1
Keywords
Examples
The only solution for n = 8 is depicted in A380867. a(n = 20) = 3 is the first case where we have several distinct solutions, {5, 11, 15, 18}, {0, 11, 14, 18} and {0, 5, 14, 15}, The corresponding triangular numbers, whose differences give the side lengths, are {15, 66, 120, 171}, {0, 66, 105, 171} and {0, 15, 105, 120}.
Links
- Daniel Mondot, Table of n, a(n) for n = 1..10000
- Daniel Mondot, in reply to Ali Sada, Re: A chain problem, SeqFan list, Mar 13, 2025
- Daniel Mondot, First instances of a new number of solutions
Crossrefs
Programs
-
PARI
T(n)=n*(n+1)/2 \\ = A000217 apply( {A380868(n)=my(Tn=T(n), T1, T2, T3, T4, n3, n4, cnt=0); Tn%2==0 && forstep(n1=n-1, 3, -1, T1=T(n1); forstep(n2=n1-1, 2, -1, (B = Tn/2 - A = T1 - T2 = T(n2)) < 3 && break; iferr((1+n3=sqrtint(2*T3 = T2-B))*n3==2*T3 && (1+n4=sqrtint(2*T4 = T3-A))*n4==2*T4 && cnt++, E, ))); cnt}, [1..99])
Comments