## Twinkle twinkle little star

Twinkle twinkle little star is a short musical piece I composed and recorded last evening.

This piece consists of 56 measures. It is 1 minute 52 seconds long. The music is composed of four tracks. This is my second attempt at recording music with multiple tracks. The last such attempt was more than two years ago when I composed and recorded 'A few notes'.

The links to the audio files, sheet music, etc. are provided below. The files reside in my website. In case, my website is down, the YouTube link provided below should still work.

The four tracks in this piece are:

1. Grand piano
2. Slow strings
4. Music box

This arrangement is based on the popular melody of the nursery rhyme called Twinkle, twinkle, little star. The melody is played with the treble notes of the piano. I wrote the bass notes for the piano and the strings, and the high notes for the pad and the music box to fill the music with emotions of love and happiness. I recorded this after about two hours of practice.

[music]

## Squaring numbers with 5 at ends

In this post, I'll discuss some simple tricks I use to square numbers that begin or end with the digit 5. Let me illustrate each trick with two examples for 2-digit numbers. Later, in this post, I'll generalize the trick for n-digit numbers where n ≥ 2 after explaining why the tricks work using algebra.

Squaring a 2-digit number that ends with 5

I learnt this from a book when I was in 5th standard. For a 2-digit number that ends with 5, let us assume that the first digit is A. So, the number can be written as A5. The square is: A × (A + 1) followed by 25, i.e. the first few digits of the square is given by A × (A + 1) and the last two digits are 25. Let us try some examples.

252 = 625. (2 × 3 = 6.) 852 = 7225. (8 × 9 = 72.)

Squaring a 2-digit number that begins with 5

After learning that trick from the book, I wondered if I could make more tricks for myself. This is the first one I could come up with. If the first digit of a 2-digit number is 5 and the second digit is A, i.e. if the number is of the form 5A, the square is given by the sum of 25 and A followed by square of A. In other words, the first two digits of the square are obtained from 25 + A and the last two digits are obtained from A2. Let us try some examples.

522 = 2704. (25 + 2 = 27 and 22 = 4.) 572 = 3249. (25 + 7 = 32 and 72 = 49.)

Squaring an n-digit number that ends with 5

Let us represent all digits except the last one as A. So, the number is of the form A5 where A represents one or more digits. e.g. if the number is 115, A = 11.

So, we can say that the number of the form A5 can be algebraically expressed as 10A + 5. Now, (10A + 5)2 = 100A2 + 100A + 25 = 100A(A + 1) + 25. This amounts to writing A(A + 1) followed by 25.

Let us try some examples:

1152 = 13225. (11 × 12 = 132.) 99952 = 99900025. (999 × 1000 = 999000.)

Squaring an n-digit number that begins with 5.

Let us represent all digits except the first one as A. So the number is of the form 5A where A represents one or more digits. e.g. if the number is 512, A = 12.

So, we can say that the number of the form 5A can be algebraically expressed as 5 × 10n + A where n is the number of digits in A, i.e. the number of digits after the first digit which is 5. Now, (5 × 10n + A)2 = 25 × 102n + 10n + 1A + A2. This amounts to writing 25 as the first two digits followed by A2 as the last 2n digits and then adding A to it by placing it just below the second digit which is 5. Some examples follow.

5022

= 250004   (22 = 4.)
+02      (02 placed under 5.)
---------
252004
---------

5122
= 250144   (122 = 144.)
+12      (12 placed under 5.)
---------
262144
---------

Using both tricks together

51952

= 25038025 (1952 =
38025; 19 × 20 = 380.)
+195     (195 placed under 5.)
-----------
26988025
-----------

Note that in the problem above, we use the second trick to square 5195 because it begins with the digit 5. However, while doing so, we need to figure the square of 195 and we use the first trick to do this.