Loading...
If and , then the difference between the largest and smallest possible values of is The integer 2019 can be formed by placing two consecutive two-digit positive integers, 19 and 20, in decreasing order. What is the sum of all four-digit positive integers greater than 2019 that can be formed in this way? We call the pair of positive integers a if the greatest common divisor of and is a perfect square. For example, is a happy pair because the greatest common divisor of 20 and 24 is 4. Suppose that is a positive integer such that is a happy pair. The number of possible values of with is 3628243027 Starting with a positive integer , Alicia creates a sequence by applying the following algorithm: Step 1: Alicia writes down the number as the first term of the sequence. Step 2: If is even, Alicia sets . If is odd, Alicia sets . Step 3: Alicia writes down the number as the next term of the sequence. Step 4: Alicia sets equal to the value of the term that she just wrote down in Step 3. Step 5: Alicia repeats Steps 2, 3, 4 until she has five terms, at which point she stops. For example, starting with , Alicia’s sequence would be 1, 4, 7, 16, 25. Alicia starts a sequence with . What is the fifth term of her sequence? A lock code is made up of four digits that satisfy the following rules: At least one digit is a , but neither the second digit nor the fourth digit is a . Exactly one digit is a , but the first digit is not . Exactly one digit is a . The code includes a , or the code includes a , or the code includes two s. How many codes are possible? | Quizalize