|
|
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
|
|
|
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
(0..n).map{|i| A(i)}
end
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,more
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|