OFFSET
1,2
COMMENTS
For n >= 2, a(n) is the sum of the terms that precede n on the row, of the A125624 array, that contains n.
EXAMPLE
5, 10, 15 and 20 have same gpf as 20, so a(20) = 5 + 10 + 15 + 20 = 50.
PROG
(PARI)
gpf(n)={my(f=factor(n)[, 1]); f[#f]}
a(n)={if(n<=1, n==1, my(t=gpf(n)); sum(i=2, n, if(gpf(i)==t, i, 0)))} \\ Andrew Howroyd, Oct 28 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
J. Stauduhar, Oct 22 2019
STATUS
approved