a(n) = least k > 0 such that n-th partial sum is divisible by n if and only if n is not prime.
A095248
a(n) = least k > 0 such that n-th partial sum is divisible by n if and only if n is not prime.
Terms
- a(0) =1a(1) =2a(2) =1a(3) =4a(4) =1a(5) =3a(6) =1a(7) =3a(8) =2a(9) =2a(10) =1a(11) =3a(12) =1a(13) =3a(14) =2a(15) =2a(16) =1a(17) =3a(18) =1a(19) =3a(20) =2a(21) =2a(22) =1a(23) =3a(24) =2a(25) =2a(26) =2a(27) =2a(28) =1a(29) =3
External references
- oeis: A095248