OFFSET
2,4
EXAMPLE
The triangle begins:
1;
1;
1, 3;
1;
3;
1;
1, 7;
1, 2, 7;
1, 3;
1;
3;
1;
3;
...
Row(2) is {1}, because 2^2-1 = 4-1 = 3, and 3 divided by 2 leaves a remainder of 1.
Row(4) is {1, 3}, because 2^4-1 = 16-1 = 15, and 15 divided by 4 leaves a remainder of 3, and 4 divided by 3 leaves a remainder of 1.
PROG
(PARI) row(n) = my(x=2^n-1, y=n, ok=1, list=List()); while (ok, my(z=divrem(x, y)); x = y; y = z[2]; if (y==0, ok=0, listput(list, y)); ); listsort(list); Vec(list); \\ Michel Marcus, Jul 31 2024
CROSSREFS
KEYWORD
nonn,tabf
AUTHOR
Mike Jones, Jul 30 2024
EXTENSIONS
More terms from Michel Marcus, Jul 31 2024
STATUS
approved