|
|
A364843
|
|
Integers are repeated in runs of 1, 2, 3, ... Each new integer (following a run) is given the value of its sequence index value.
|
|
1
|
|
|
1, 2, 2, 4, 4, 4, 7, 7, 7, 7, 11, 11, 11, 11, 11, 16, 16, 16, 16, 16, 16, 22, 22, 22, 22, 22, 22, 22, 29, 29, 29, 29, 29, 29, 29, 29, 37, 37, 37, 37, 37, 37, 37, 37, 37, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56
(list;
table;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
Omitting repeats yields the triangular numbers plus 1 sequence A000124.
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*y*(1 + 2*x^4*y^2 - x*(1 + y) - 2*x^3*y*(1 + y) + x^2*(1 + y + y^2))/((1 - x)^3*(1 - x*y)^3). - Stefano Spezia, Sep 02 2023
|
|
EXAMPLE
|
Illustrated as a triangle begins:
1;
2, 2;
4, 4, 4;
7, 7, 7, 7;
11, 11, 11, 11, 11;
16, 16, 16, 16, 16, 16;
22, 22, 22, 22, 22, 22, 22;
...
|
|
MAPLE
|
T:= (n, k)-> n*(n-1)/2+1:
|
|
PROG
|
(PARI) a(n) = my(t=(sqrtint(8*n-1)-1)\2); t*(t+1)/2+1 \\ Thomas Scheuerle, Aug 10 2023
(Python)
from math import isqrt
|
|
CROSSREFS
|
|
|
KEYWORD
|
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|