OFFSET
1,2
COMMENTS
In terms of the repetition convolution operator #, where (sequence A) # (sequence B) = the sequence consisting of A(n) copies of B(n), then this sequence is the repetition self-convolution (A000217(n)-0) # (A000217(n)-0). Over the set of positive infinite integer sequences, # gives a nonassociative noncommutative groupoid with a left identity (A000012) but no right identity, where the left identity is also a right nullifier and idempotent.
LINKS
Chai Wah Wu, Algorithms for Complementary Sequences, Integers (2025) Vol. 25, Art. No. A95. See p. 22.
FORMULA
MATHEMATICA
Flatten@ Array[ConstantArray[#, #] & @* PolygonalNumber, 7] (* Michael De Vlieger, Nov 06 2025 *)
PROG
(Python)
from sympy import integer_nthroot
def A108581(n): return (r:=(m:=integer_nthroot(k:=6*n, 3)[0])+(k>m*(m+1)*(m+2)))*(r+1)>>1 # Chai Wah Wu, Nov 07 2024
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jonathan Vos Post, Jul 25 2005
STATUS
approved
