login
Rearrangement of natural numbers with a(1) = 1, a(2n) squarefree and a(2n+1) not squarefree.
2

%I #5 Dec 05 2013 19:55:37

%S 1,2,4,3,8,5,9,6,12,7,16,10,18,11,20,13,24,14,25,15,27,17,28,19,32,21,

%T 36,22,40,23,44,26,45,29,48,30,49,31,50,33,52,34,54,35,56,37,60,38,63,

%U 39,64,41,68,42,72,43,75,46,76,47,80,51,81,53,84,55,88,57,90,58,92,59

%N Rearrangement of natural numbers with a(1) = 1, a(2n) squarefree and a(2n+1) not squarefree.

%o (PARI) print1(1,",");p1=2;p2=4;for(i=2,100,if(i%2==0, while(!issquarefree(p1),p1++);print1(p1,",");p1++, while(issquarefree(p2),p2++);print1(p2,",");p2++)) - Lambert Herrgesell (zero815(AT)googlemail.com), Mar 09 2006

%K nonn

%O 1,2

%A _Amarnath Murthy_, Sep 22 2002

%E More terms from Lambert Herrgesell (zero815(AT)googlemail.com), Mar 09 2006