Kitty has a tree, , consisting of nodes where each node is uniquely labeled from to . Her friend Alex gave her sets, where each…

Tara has an array, , consisting of integers where each integer occurs at most times in the array. Let’s define to be a permutation of where is…

Andy loves playing games. He wants to play a game with his little brother, Bob, using an array, , of distinct integers.…

Two cats named and are standing at integral points on the x-axis. Cat is standing at point and cat is standing at point . Both cats…

Given a positive integer, , find and print the number of pairs of positive integers , where , that exist such that the…

Lia is fascinated by anything she considers to be a twin. She calls a pairs of positive integers, and , twins if: They…

Kristen loves playing with and comparing numbers. She thinks that if she takes two different positive numbers, the one whose…

Luke is daydreaming in Math class. He has a sheet of graph paper with rows and columns, and he imagines that there…

Work out the first ten digits of the sum of numbers. Input Format First line contains , next lines contain a 50 digit…

A Pythagorean triplet is a set of three natural numbers, , for which, For example, Given , Check if there exists any…