(MAGMAMagma) sol:=[1]; for n in [2..60] do Append(~sol, &+[NthPrime(Floor(n/d))*sol[d]:d in Set(Divisors(n)) diff {n}]); end for; sol; // Marius A. Burtea, Sep 05 2019
(MAGMAMagma) sol:=[1]; for n in [2..60] do Append(~sol, &+[NthPrime(Floor(n/d))*sol[d]:d in Set(Divisors(n)) diff {n}]); end for; sol; // Marius A. Burtea, Sep 05 2019
reviewed
approved
proposed
reviewed
editing
proposed
(MAGMA) sol:=[1]; for n in [2..60] do Append(~sol, &+[NthPrime(Floor(n/d))*sol[d]:d in Set(Divisors(n)) diff {n}]); end for; sol; // Marius A. Burtea, Sep 05 2019
(MAGMA) sol:=[1]; for k n in [2..60] do Append(~sol, &+[NthPrime(Floor(kn/d))*sol[d]:d in Set(Divisors(kn)) diff {kn}]); end for; sol; // Marius A. Burtea, Sep 05 2019
(MAGMA) sol:=[1]; for k in [2..60] do Append(~sol, &+[NthPrime(Floor(k/d))*sol[d]:d in Set(Divisors(k)) diff {k}]); end for; sol; // Marius A. Burtea, Sep 05 2019
approved
editing
proposed
approved
editing
proposed
(PARI) seq(n)={my(v=vector(n)); v[1]=1; for(n=2, #v, v[n] = sumdiv(n, d, v[d]*prime(n/d))); v} \\ Andrew Howroyd, Sep 05 2019
proposed
editing