The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A349257 Largest integer that can be expressed as Sum_{k=1..n} k/p(k), where p is a permutation of [n]. 1
0, 1, 2, 3, 6, 7, 10, 11, 15, 18, 21, 22, 27, 28, 32, 36, 40, 41, 46, 47 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
LINKS
FORMULA
a(n) = 1 + a(n-1) if n is prime. - Alois P. Heinz, Nov 12 2021
PROG
(Ruby)
def A(n)
max = 0
(1..n).to_a.permutation{|i|
m = (1..n).inject(0){|s, j| s + j / i[j - 1].to_r}
if m.denominator == 1
max = m if max < m
end
}
max.to_i
end
def A349257(n)
(0..n).map{|i| A(i)}
end
p A349257(8)
CROSSREFS
Sequence in context: A117206 A026443 A345251 * A204323 A278965 A032858
KEYWORD
nonn,more
AUTHOR
Seiichi Manyama, Nov 12 2021
EXTENSIONS
a(12)-a(19) from Alois P. Heinz, Nov 12 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 02:12 EDT 2024. Contains 372497 sequences. (Running on oeis4.)