login
a(n) = smallest positive integer such that {1 + product{k=1 to n} a(k)} is coprime to n.
0

%I #5 Apr 09 2014 10:12:19

%S 1,2,2,1,2,2,1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,1,1,1,1,1,1,1,1,1,1,1,1,1,

%T 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,

%U 1,1,1,1,1,1,1,1,1,1,1

%N a(n) = smallest positive integer such that {1 + product{k=1 to n} a(k)} is coprime to n.

%C a(22) to a(256) are each equal to 1. a(257) = 2.

%K nonn

%O 1,2

%A _Leroy Quet_, Jan 11 2005