OFFSET
1,5
COMMENTS
For any n > 0 and f >= A002034(n), d_f(n) = 0; hence the series in the name contains only finitely many nonzero terms and is well defined.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Colored pin plot of the first 2000 terms (where the color is function of the number f in the term d_f(n))
Rémy Sigrist, PARI program for A303711
FORMULA
a(n) = 0 iff n belongs to A303703.
EXAMPLE
For n = 42:
- d_1(n) = 0,
- d_2(n) = 0,
- d_3(n) = 0,
- d_4(n) = |42 - 36| = |42 - 48| = 6,
- d_5(n) = |42 - 40| = 2,
- d_6(n) = |42 - 40| = 2,
- d_f(n) = 0 for any f >= 7,
- hence a(42) = 6 + 2 + 2 = 10.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Rémy Sigrist, Apr 29 2018
STATUS
approved