Brilliant Binary Being Batty

A brilliant binary sequence B k B_k is a sequence of k k digits made of 0's and 1's such that each digit is adjacent to at least one 1.

Let S k S_k be the number of brilliant binary sequences of length k k . A positive integer n n is called batty if S n S_n is divisible by 20. Find the smallest n > 2 n > 2 that is batty .


The answer is 25.

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.

1 solution

Mark Hennings
Mar 7, 2016

Relevant wiki: Linear Recurrence Relations - Problem Solving

The number of sequences of length k k that can be put together out the single digit 1 1 and the digit pair 10 10 is equal to the ( k + 1 ) (k+1) st Fibonacci number F k + 1 F_{k+1} (defined with F 0 = 0 F_0=0 , F 1 = 1 F_1 = 1 , F 2 = 1 F_2 =1 , ...). This is a pretty standard result.

It is clear that S 2 = 1 S_2 = 1 and that S 3 = 3 S_3 = 3 . Suppose now that k 2 k \ge 2 .

In a Brilliant binary sequence of length 2 k 2k , the subsequence of the 2 2 nd, 4 4 th, 6 6 th, ..., ( 2 k ) (2k) th digits cannot contain repeating 0 0 s, and the second digit must be 1 1 . The number of such subsequences is the the number of sequences of length k k that can be put together out of the single digit 1 1 and the digit pair 10 10 , namely F k + 1 F_{k+1} . Similarly, the subsequence of the 1 1 st, 3 3 rd, 5 5 th, ..., ( 2 k 1 ) (2k-1) st digits cannot contain repeating 0 0 s, and the ( 2 k 1 ) (2k-1) st digit must be 1 1 . There are F k + 1 F_{k+1} such subsequences. Thus we deduce that S 2 k = F k + 1 2 S_{2k} = F_{k+1}^2 .

In a Brilliant sequence of length 2 k + 1 2k+1 , the subsequence of the 1 1 st, 3 3 rd, 5 5 th, ..., ( 2 k + 1 ) (2k+1) st digits cannot contain repeated 0 0 s, and is of length k + 1 k+1 . But this is the number of sequences of length k + 2 k+2 that can be put together out of the single digit 1 1 and the digit pair 10 10 (just add a 1 1 to the start to see why), and so there are F k + 3 F_{k+3} such subsequences. Similarly, the subsequence of the 2 2 nd, 4 4 th, 6 6 th, ..., ( 2 k ) (2k) th digits cannot contain repeating 0 0 s, and the second and ( 2 k ) (2k) th digits must both be 1 1 . This is just the collection of sequences of length k 1 k-1 that can be put together from the single digit 1 1 and the digit pair 10 10 , with an extra digit 1 1 added to the end. Thus there are F k F_k such sequences. Thus we deduce that S 2 k + 1 = F k + 3 F k S_{2k+1} = F_{k+3}F_k .

Since S 2 k = F k + 1 2 S 2 k + 1 = F k + 3 F k k 2 , S_{2k} \; = \; F_{k+1}^2 \qquad \qquad S_{2k+1} \; = \; F_{k+3}F_k \qquad \qquad k \ge 2 \;, it merely remains to find the smallest value of k k for which S k S_k is divisible by 20 20 . This happens with S 25 = 87840 S_{25} = 87840 , and so the answer is 25 \boxed{25} . The next batty number is S 28 = 372100 S_{28} = 372100 .

We could note that F k 0 ( m o d 2 ) F_k \equiv 0 \pmod 2 provided that k 0 ( m o d 3 ) k \equiv 0 \pmod 3 , and that F k 0 ( m o d 5 ) F_k \equiv 0 \pmod 5 provided that k 0 ( m o d 5 ) k \equiv 0 \pmod 5 . From these observations and the Chinese Remainder Theorem we can deduce that S k 0 ( m o d 20 ) S_k \equiv 0 \pmod {20} provided that k 2 k \ge 2 and k 1 , 25 , 28 ( m o d 30 ) k \equiv 1\,,\,25\,,\,28 \pmod {30} . The batty numbers are those k 2 k \ge 2 which are congruent to one of 1 1 , 25 25 or 28 28 modulo 30 30 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...