document.write( "Question 1053828: what is the formula of sequence 1,2,1,2,1,2... \n" ); document.write( "
Algebra.Com's Answer #669014 by Edwin McCravy(20056)\"\" \"About 
You can put this solution on YOUR website!
\r\n" );
document.write( "Observe that from halfway between 1 and 2, which is \"1%261%2F2\", \r\n" );
document.write( "we go down from \"1%261%2F2\" by \"1%2F2\" to 1, then\r\n" );
document.write( "we go up from \"1%261%2F2\" by \"1%2F2\" to 2, then\r\n" );
document.write( "we go down from \"1%261%2F2\" by \"1%2F2\" to 1, then\r\n" );
document.write( "we go up from \"1%261%2F2\" by \"1%2F2\" to 2, then\r\n" );
document.write( "etc., etc., etc., ...\r\n" );
document.write( "\r\n" );
document.write( "We know that the formula \"%28-1%29%5En\" goes down and up\r\n" );
document.write( "-1,1,-1,1,-1,1,...\r\n" );
document.write( "\r\n" );
document.write( "So we can use that as a multiplier of \"1%2F2\" to go down\r\n" );
document.write( "and up from \"1%261%2F2\",\r\n" );
document.write( "\r\n" );
document.write( "So to get the 1st term we take \"1%261%2F2\" and add\r\n" );
document.write( "\"%28-1%29%5E1\", which is -1, times \"1%2F2\", to go down\r\n" );
document.write( "to 1.\r\n" );
document.write( "\r\n" );
document.write( "Then to get the 2nd term we take \"1%261%2F2\" and add\r\n" );
document.write( "\"%28-1%29%5E2\", which is +1, times \"1%2F2\", to go up\r\n" );
document.write( "to 2.\r\n" );
document.write( "\r\n" );
document.write( "Then to get the 3rd term we take \"1%261%2F2\" and add\r\n" );
document.write( "\"%28-1%29%5E3\", which is -1, times \"1%2F2\", to go down\r\n" );
document.write( "to 1.\r\n" );
document.write( "\r\n" );
document.write( "Then to get the 4th term we take \"1%261%2F2\" and add\r\n" );
document.write( "\"%28-1%29%5E4\", which is +1, times \"1%2F2\", to go up\r\n" );
document.write( "to 2.\r\n" );
document.write( "\r\n" );
document.write( "etc., etc., etc.,...\r\n" );
document.write( "\r\n" );
document.write( "So when n is odd, we go down by \"1%2F2\" to 1 from \"1%261%2F2\"\r\n" );
document.write( "and when n is even, we go up by \"1%2F2\" to 2 from \"1%261%2F2\". \r\n" );
document.write( "\r\n" );
document.write( "So to get the nth term we take \"1%261%2F2\" and add\r\n" );
document.write( "\"%28-1%29%5En\" times \"1%2F2\",\r\n" );
document.write( "\r\n" );
document.write( "So the formula for the nth term, which we call \"a%5Bn%5D\" is\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "That will do for the formula, but maybe we want to write\r\n" );
document.write( "it a little differently. We change \"1%261%2F2\" to an improper\r\n" );
document.write( "fraction \"3%2F2\"\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Then we can factor out \"1%2F2\"\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Then we can change 'multiplying by \"1%2F2\"' to \r\n" );
document.write( "'dividing by 2' which is the same thing:\r\n" );
document.write( "\r\n" );
document.write( "\"matrix%281%2C5%2Ca%5Bn%5D%2C%22%22%2C%22%22=%22%22%2C%22%22%2C%283%2B%28-1%29%5En%29%2F2+%29\"\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" ); document.write( "
\n" );