document.write( "Question 926846: The number im thinking of is between 12 and 32
\n" );
document.write( "when i divide it by 5, it leaves a remainder of 1
\n" );
document.write( "when i divide it by 4, it leaves a remainder of 2
\n" );
document.write( "The number is ?\r
\n" );
document.write( "\n" );
document.write( "Can you please write how to calculate this problem? so i can do it in next similar question with a different numbers. Thank youu \n" );
document.write( "
Algebra.Com's Answer #562518 by CharlesG2(834)![]() ![]() ![]() You can put this solution on YOUR website! The number I'm thinking of is between 12 and 32. \n" ); document.write( "When I divide it by 5, it leaves a remainder of 1 \n" ); document.write( "When I divide it by 4, it leaves a remainder of 2 \n" ); document.write( "The number is ?\r \n" ); document.write( "\n" ); document.write( "a modulo b or a % b gives remainder of division\r \n" ); document.write( "\n" ); document.write( "a%b is the remainder of a / b, example 5 % 2 = 1\r \n" ); document.write( "\n" ); document.write( "let n be the number we want to find\r \n" ); document.write( "\n" ); document.write( "n % 5 = 1 --> 16, 21, 26, 31 (all numbers that are multiples of 5 between 12 and 32 and adding 1 to each of them, notice these numbers each have a difference of 5)\r \n" ); document.write( "\n" ); document.write( "n % 4 = 2 --> 14, 18, 22, 26, 30 (all numbers that are multiples of 4 between 12 and 32 and adding 2 to each of them, notice these numbers each have a difference of 4)\r \n" ); document.write( "\n" ); document.write( "26 satisfies both requirements \n" ); document.write( "26 % 5 = 1 and 26 % 4 = 2 \n" ); document.write( "so 26 is the number you wanted to find \n" ); document.write( " \n" ); document.write( " |