My toy piano keyboard has 7 distinct white notes: letters A-G in English alphabet. I'm going to create a melody by playing three random notes. I can repeat a note for two or three times (six examples are given below). How many different melodies I can play?
Examples:
C D E
A B G
C B C
G E E
A A F
D D D
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
As there are seven different notes, I've got 7 choices for the first note I'm playing. Similarly, I've got 7 choices for second and third notes too. From the theory of counting, all possible combinations equal to 7 ∗ 7 ∗ 7 = 3 4 3 .