login
Lexicographically earliest sequence of distinct positive integers such that the n-th partial sum and n-th partial product are divisible by n.
4

%I #6 Apr 04 2015 21:56:18

%S 2,4,3,11,5,17,7,15,8,18,9,57,13,27,14,30,32,16,35,37,39,107,23,47,24,

%T 50,25,137,29,89,31,63,65,33,68,34,71,73,36,236,41,125,43,87,44,90,45,

%U 93,46,96,98,308,53,161,55,111,56,114,116,238,61,123,62,126,128,262,67

%N Lexicographically earliest sequence of distinct positive integers such that the n-th partial sum and n-th partial product are divisible by n.

%e 1 is divisible by 1, but a(1) cannot be 1, because a(2) would have to be odd to make an even sum, but even to make an even product. Similarly, 2+4+3+7 and 2*4*3*7 are both divisible by 4, but if a(4) were 7 then a(5) would not exist, so a(4) = 11.

%Y Cf. A093840, A093841, A093842, A093843.

%K nonn,easy,less

%O 1,1

%A _Amarnath Murthy_, Apr 18 2004

%E Edited and extended by _David Wasserman_, Mar 21 2007