A237684 a(n) = floor(n*prime(n) / Sum_{i<=n} prime(i)).
1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
Offset: 1
Keywords
Examples
a(8) = floor(8*prime(8) / Sum_{i<=8} prime(i)) = floor(8*19 / 77) = 1.
Links
- Jaroslav Krizek, Table of n, a(n) for n = 1..87
- Manuel Kauers and Christoph Koutschan, Some D-finite and some Possibly D-finite Sequences in the OEIS, arXiv:2303.02793 [cs.SC], 2023, p. 4.
Programs
-
Mathematica
Block[{$MaxExtraPrecision = 1000, a, t = 0, nn = 120}, Do[(t += #; Set[a[i], Floor[i*#/t]]) &[Prime[i]], {i, nn}]; Array[a, nn] ] (* Michael De Vlieger, Mar 10 2023 *)
Comments