login
A281072
Smallest number k > 0 such that b - r is even or r = 0 for all b = 1..n, r == k mod b.
2
1, 2, 4, 4, 6, 6, 10, 10, 10, 10, 36, 36, 66, 66, 196, 196, 196, 196, 568, 568, 568, 568, 1008, 1008, 1288, 1288, 1288, 1288, 8398, 8398, 8730, 8730, 50688, 50688, 124738, 124738, 124738, 124738, 155296, 155296, 155296, 155296, 155296, 155296, 155296, 155296, 1784476, 1784476
OFFSET
1,2
COMMENTS
a(n) is the smallest number for which A281071(a(n)) is greater than or equal to n.
LINKS
EXAMPLE
a(3) = 4 because
1 mod 2 = 1 where r > 0 and 2 - 1 is odd;
2 mod 3 = 2 where r > 0 and 3 - 2 is odd;
3 mod 2 = 1 where r > 0 and 2 - 1 is odd;
4 mod 1 = 0 where r = 0,
4 mod 2 = 0 where r = 0,
4 mod 3 = 1 where 3 - 1 is even.
CROSSREFS
Cf. A281071.
Sequence in context: A364066 A164798 A087554 * A226951 A251557 A231901
KEYWORD
nonn,easy
AUTHOR
Martin Janecke, Jan 14 2017
STATUS
approved