Maths Olympiad Prep

Library / /6 of 82

Combinatorics Difficulty 4.2 AIME Find the answer United States

Problem:
A computer program is a function that takes in 4 bits, where each bit is either a 00 or a 11, and outputs TRUE or FALSE. How many computer programs are there?

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

Solution:
The function has 242^{4} inputs and 22 outputs for each possible input, so the answer is 224=216=655362^{2^{4}} = 2^{16} = 65536.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.