Math Problem Statement

Lucas' Theorem. This theorem states that (๐‘›๐‘˜)(knโ€‹) is odd if (๐‘˜)๐‘–โ‰ค(๐‘›)๐‘–(k)iโ€‹โ‰ค(n)iโ€‹ for all $i = 0,1,...$ and even otherwise. Here, (๐‘›)๐‘–(n)iโ€‹ is the ๐‘–i-th least significant bit of ๐‘›n if written in binary. For example, 1111 in binary is 10111011 and 33 is 1111 (or 00110011 to make sure that both have four bits). Now 00110011 is ``bitwise at most'' 10111011, and thus Lucas' Theorem states that (113)(311โ€‹) is odd. Which it is, since (113)=165(311โ€‹)=165.

To get started, let us introduce some notation. For an integer ๐‘›โ‰ฅ1nโ‰ฅ1 we define ๐‘“(๐‘›):=maxโก{๐‘˜โˆˆ๐‘0ย suchย thatย 2๐‘˜ย dividesย ๐‘›}f(n):=max{kโˆˆN0โ€‹ย suchย thatย 2kย dividesย n}. For example, ๐‘“(5)=0f(5)=0, ๐‘“(14)=1f(14)=1, ๐‘“(12)=2f(12)=2.

Question 4

Let ๐‘›=1152921504606846987n=1152921504606846987. If we compute (๐‘›๐‘˜)modโ€‰โ€‰2(knโ€‹)mod2 for ๐‘˜=0โ€ฆ7k=0โ€ฆ7, which sequence do we get?

Write your answer as a simple 0/1 string. For example, if your sequence is (1,0,1,0,1,0,1,0)(1,0,1,0,1,0,1,0), answer 1010101010101010.

Solution

Ask a new question for Free

By Image

Drop file here or Click Here to upload

Math Problem Analysis

Mathematical Concepts

Combinatorics
Number Theory
Binary Representation

Formulas

Lucas' Theorem
Binomial Coefficients: C(n, k)

Theorems

Lucas' Theorem

Suitable Grade Level

Grades 11-12