OFFSET
1,5
COMMENTS
a(n) = 0 if and only if n is a term of A045345. - Nicholas Drozd, Nov 18 2018
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
Karl-Heinz Hofmann, Listening to the terms of A090396, YouTube video.
Karl-Heinz Hofmann, Plot of 3 selected ranges, n = 1..8200, 59000..113000, 105000..154000.
Hugo Pfoertner, Visualization of a(n)/n, covering time range of audio track in video (160000 terms).
Hugo Pfoertner, Filtered spectrum of a(n)/n waveform, shifted to audible frequency range.
FORMULA
a(n) = A007504(n) mod n. - Karl-Heinz Hofmann, May 05 2021
MAPLE
N:= 1000; # to get the first N terms
pN:= ithprime(N):
C:= map(round, Statistics:-CumulativeSum(select(isprime, [$1..pN])));
seq(C[n] mod n, n = 1 .. N); # Robert Israel, May 29 2014
MATHEMATICA
t = Table[Mod[ Sum[Prime[i], {i, 1, n}], n], {n, 1, 100}]
Module[{nn=80, pr}, pr=Accumulate[Prime[Range[nn]]]; Table[Mod[pr[[n]], n], {n, nn}]] (* Harvey P. Dale, Jul 03 2019 *)
PROG
(PARI) a(n) = sum(k=1, n, prime(k)) % n;
for(n=1, 80, print1(a(n), ", ")); \\ Indranil Ghosh, Mar 06 2017
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Joseph L. Pe, Jan 31 2004
STATUS
approved