63
Introduction General Theory Linear Appendix (Multi) Open Questions Linear Recurrence Relations with Non-constant Coefficients and Benford’s Law Mengxi Wang, Lily Shao University of Michigan, Williams College [email protected] [email protected] Young Mathematics Conference, Ohio State University, August 10, 2018 1

Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

  • Upload
    others

  • View
    19

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations withNon-constant Coefficients and Benford’s

Law

Mengxi Wang, Lily ShaoUniversity of Michigan, Williams College

[email protected]@williams.edu

Young Mathematics Conference, Ohio State University,August 10, 2018

1

Page 2: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Motivating Question: For a nice data set, such as theFibonacci numbers, stock prices, street addresses ofcollege employees and students, ..., what percent of theleading digits are 1?

Answer: Benford’s law!

2

Page 3: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Motivating Question: For a nice data set, such as theFibonacci numbers, stock prices, street addresses ofcollege employees and students, ..., what percent of theleading digits are 1?

Answer: Benford’s law!

3

Page 4: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples with First Digit Bias

Fibonacci numbers

Most common iPhone passcodes

Twitter users by # followers

Distance of stars from Earth

4

Page 5: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples with First Digit Bias

Fibonacci numbers

Most common iPhone passcodes

Twitter users by # followers

Distance of stars from Earth

5

Page 6: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples with First Digit Bias

Fibonacci numbers

Most common iPhone passcodes

Twitter users by # followers

Distance of stars from Earth

6

Page 7: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples with First Digit Bias

Fibonacci numbers

Most common iPhone passcodes

Twitter users by # followers

Distance of stars from Earth

7

Page 8: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Applications

Analyzing round-off errors.

Determining the optimal way to storenumbers.

Detecting tax and image fraud, and dataintegrity.

8

Page 9: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

An Interesting Question

From previous works: sequences generated by linearrecurrence relations with constant coefficients obeyBenford’s Law.

Example: The Fibonacci Sequence 1, 2, 3, 5, 8, 13,21, 34, . . . .

Question: Non-constant coefficients?

9

Page 10: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

An Interesting Question

From previous works: sequences generated by linearrecurrence relations with constant coefficients obeyBenford’s Law.

Example: The Fibonacci Sequence 1, 2, 3, 5, 8, 13,21, 34, . . . .

Question: Non-constant coefficients?

10

Page 11: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

An Interesting Question

From previous works: sequences generated by linearrecurrence relations with constant coefficients obeyBenford’s Law.

Example: The Fibonacci Sequence 1, 2, 3, 5, 8, 13,21, 34, . . . .

Question: Non-constant coefficients?

11

Page 12: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Outline

Benford’s Law.

Linear Recurrence relations (degree 2 and higherdegree).

Multiplicative Recurrence relations.

Open problems and references.

12

Page 13: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Equidistributionand

Benford’s Law

13

Page 14: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Benford’s Law

Benford’s LawA set of numbers is Benford (base b) if the probability of

observing a first digit of d is logb

(1 + 1

d

).

Strong BenfordA set of numbers is Strong Benford (base b) if theprobability of observing a significand in [1, s) is logb(s).Then the probability of observing a significand in [s, s + 1)

is logb

(1 + 1

s

).

14

Page 15: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Benford’s Law

Benford’s LawA set of numbers is Benford (base b) if the probability of

observing a first digit of d is logb

(1 + 1

d

).

Strong BenfordA set of numbers is Strong Benford (base b) if theprobability of observing a significand in [1, s) is logb(s).Then the probability of observing a significand in [s, s + 1)

is logb

(1 + 1

s

).

15

Page 16: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Equidistribution and Benford’s Law

Equidistribution{yn}∞n=1 is equidistributed modulo 1 if probabilityyn mod 1 ∈ [a,b] tends to b − a:

#{n ≤ N : yn mod 1 ∈ [a,b]}N

→ b − a.

Theoremβ 6∈ Q, nβ is equidistributed mod 1.

16

Page 17: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Logarithms and Benford’s Law

Fundamental EquivalenceData set {xi} is Benford base B if {yi} is equidistributedmod 1, where yi = logB xi .

x = S10(x) · 10k then

log10 x = log10 S10(x) + k = log10 S10x mod 1.

17

Page 18: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Logarithms and Benford’s Law

Fundamental EquivalenceData set {xi} is Benford base B if {yi} is equidistributedmod 1, where yi = logB xi .

x = S10(x) · 10k then

log10 x = log10 S10(x) + k = log10 S10x mod 1.

18

Page 19: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Logarithms and Benford’s Law

Fundamental EquivalenceData set {xi} is Benford base B if {yi} is equidistributedmod 1, where yi = logB xi .

x = S10(x) · 10k then

log10 x = log10 S10(x) + k = log10 S10x mod 1.

19

Page 20: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Logarithms and Benford’s Law

Prob(leading digit d)= log10(d + 1)− log10(d)= log10

(d+1

d

)= log10

(1 + 1

d

).

Have Benford’s law↔mantissa (fractional part) oflogarithms of data areuniformly distributed

20

Page 21: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples

Remember: β 6∈ Q, nβ is equidistributed mod 1.

2n is Benford base 10 as log10 2 6∈ Q.

Fibonacci numbers are Benford base 10.Binet: an = 1√

5

(1+√

52

)n− 1√

5

(1−√

52

)n.

21

Page 22: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples

Remember: β 6∈ Q, nβ is equidistributed mod 1.

2n is Benford base 10 as log10 2 6∈ Q.

Fibonacci numbers are Benford base 10.Binet: an = 1√

5

(1+√

52

)n− 1√

5

(1−√

52

)n.

22

Page 23: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples

Remember: β 6∈ Q, nβ is equidistributed mod 1.

2n is Benford base 10 as log10 2 6∈ Q.

Fibonacci numbers are Benford base 10.Binet: an = 1√

5

(1+√

52

)n− 1√

5

(1−√

52

)n.

23

Page 24: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Useful Theorem

It suffices to analyze the main term of the sequence:

TheoremIf a sequence {an} is Benford and lim

n→∞bn = an then {bn}

is Benford as well.

24

Page 25: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations

25

Page 26: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations of Degree 2

an+1 = f (n)an + g(n)an−1 with non-constantcoefficients f (n) and g(n).

Explore conditions on f and g such that the sequencegenerated obeys Benford’s Law for all initial values.

First solve the closed form of the sequence (an), thenanalyze its main term.

26

Page 27: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations of Degree 2

an+1 = f (n)an + g(n)an−1 with non-constantcoefficients f (n) and g(n).

Explore conditions on f and g such that the sequencegenerated obeys Benford’s Law for all initial values.

First solve the closed form of the sequence (an), thenanalyze its main term.

27

Page 28: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations of Degree 2

an+1 = f (n)an + g(n)an−1 with non-constantcoefficients f (n) and g(n).

Explore conditions on f and g such that the sequencegenerated obeys Benford’s Law for all initial values.

First solve the closed form of the sequence (an), thenanalyze its main term.

28

Page 29: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations of Degree 2

To solve for the closed form of the sequence:

Main idea: reduce the degree of recurrence.

Define an auxiliary sequence {bn}∞n=1 bybn = an+1 − λ(n)an for n ≥ 1.((an) recurrent of degree 2, so (bn) of degree 1).

Set an+1 − λ(n)an = µ(n)(an − λ(n − 1)an−1) forn ≥ 2.

29

Page 30: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations of Degree 2

To solve for the closed form of the sequence:

Main idea: reduce the degree of recurrence.

Define an auxiliary sequence {bn}∞n=1 bybn = an+1 − λ(n)an for n ≥ 1.((an) recurrent of degree 2, so (bn) of degree 1).

Set an+1 − λ(n)an = µ(n)(an − λ(n − 1)an−1) forn ≥ 2.

30

Page 31: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

an+1 = (λ(n) + µ(n))an − µ(n)λ(n − 1)an−1, andcompare the coefficients:

f (n) = λ(n) + µ(n)g(n) = −λ(n − 1)µ(n).

We show that for any given pair of f and g, such λand µ always exist.

31

Page 32: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

an+1 = (λ(n) + µ(n))an − µ(n)λ(n − 1)an−1, andcompare the coefficients:

f (n) = λ(n) + µ(n)g(n) = −λ(n − 1)µ(n).

We show that for any given pair of f and g, such λand µ always exist.

32

Page 33: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations of Degree 2

Recurrence relations of degree 1:

an+1 = λ(n)an + bn

bn = µ(n)bn−1.

an+1 = r(n)(

1 +n∑

k=3

n∏i=k

λ(i)µ(i) +

a2

b1

n∏i=2

λ(i)µ(i)

), where

r(n) := b1

n∏i=2

µ(i).

33

Page 34: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations of Degree 2

Recurrence relations of degree 1:

an+1 = λ(n)an + bn

bn = µ(n)bn−1.

an+1 = r(n)(

1 +n∑

k=3

n∏i=k

λ(i)µ(i) +

a2

b1

n∏i=2

λ(i)µ(i)

), where

r(n) := b1

n∏i=2

µ(i).

34

Page 35: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations of Degree 2

Asymptotic analysis: show the main term dominatesfor suitable choices of µ and λ.

Let λ(n)µ(n) be a non-increasing function and

limn→∞

λ(n)µ(n) = 0, then lim

n→∞(an+1 − r(n)) = 0.

limn→∞

λ(n)µ(n) = 0 implies lim

n→∞g(n)f (n)2 = 0.

35

Page 36: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations of Degree 2

Asymptotic analysis: show the main term dominatesfor suitable choices of µ and λ.

Let λ(n)µ(n) be a non-increasing function and

limn→∞

λ(n)µ(n) = 0, then lim

n→∞(an+1 − r(n)) = 0.

limn→∞

λ(n)µ(n) = 0 implies lim

n→∞g(n)f (n)2 = 0.

36

Page 37: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrence Relations of Degree 2

Asymptotic analysis: show the main term dominatesfor suitable choices of µ and λ.

Let λ(n)µ(n) be a non-increasing function and

limn→∞

λ(n)µ(n) = 0, then lim

n→∞(an+1 − r(n)) = 0.

limn→∞

λ(n)µ(n) = 0 implies lim

n→∞g(n)f (n)2 = 0.

37

Page 38: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Benford-ness of the Main Term

Main term of an+1 is r(n) = b1

n∏i=2

µ(i).

Since (strong) Benford-ness is preserved under

translation and dilation we let r(n) =n∏

i=1µ(i) for

simplicity.

38

Page 39: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Benford-ness of the Main Term

Main term of an+1 is r(n) = b1

n∏i=2

µ(i).

Since (strong) Benford-ness is preserved under

translation and dilation we let r(n) =n∏

i=1µ(i) for

simplicity.

39

Page 40: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples when f and g are functions

If µ(k) = k , then r(n) = n!.

If µ(k) = kα where α ∈ R, then r(n) = (n!)α.

If µ(k) = exp(αh(k)) where α is irrational and h(k) is a

monic polynomial, then log r(n) = αn∑

k=1h(k).

LemmaThe sequence {αp(n)} is equidistributed mod 1 if α /∈ Qand p(n) a monic polynomial.

40

Page 41: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples when f and g are functions

If µ(k) = k , then r(n) = n!.

If µ(k) = kα where α ∈ R, then r(n) = (n!)α.

If µ(k) = exp(αh(k)) where α is irrational and h(k) is a

monic polynomial, then log r(n) = αn∑

k=1h(k).

LemmaThe sequence {αp(n)} is equidistributed mod 1 if α /∈ Qand p(n) a monic polynomial.

41

Page 42: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples when f and g are functions

If µ(k) = k , then r(n) = n!.

If µ(k) = kα where α ∈ R, then r(n) = (n!)α.

If µ(k) = exp(αh(k)) where α is irrational and h(k) is a

monic polynomial, then log r(n) = αn∑

k=1h(k).

LemmaThe sequence {αp(n)} is equidistributed mod 1 if α /∈ Qand p(n) a monic polynomial.

42

Page 43: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples when f and g are random variables

Take µ(n) ∼ h(n)Un where the Un’s are independentuniform distributions on [0,1], and h(n) is a

deterministic function in n such thatn∏

i=1h(i) is Benford.

Then r(n) =n∏

i=1h(i)

n∏i=1

Ui is Benford.

Take µ(n) ∼ exp(Un) where the Un’s are i.i.d. randomvariables. Then take logarithm and sum up log(µ(n)).Apply Central Limit Theorem and get a Gaussiandistribution with increasing variance.

43

Page 44: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples when f and g are random variables

Take µ(n) ∼ h(n)Un where the Un’s are independentuniform distributions on [0,1], and h(n) is a

deterministic function in n such thatn∏

i=1h(i) is Benford.

Then r(n) =n∏

i=1h(i)

n∏i=1

Ui is Benford.

Take µ(n) ∼ exp(Un) where the Un’s are i.i.d. randomvariables. Then take logarithm and sum up log(µ(n)).Apply Central Limit Theorem and get a Gaussiandistribution with increasing variance.

44

Page 45: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrences of Higher Degree

Use recurrence relation of degree 3 as an example.Similar main idea: reduce the degree.

Define the sequence {an}∞n=1 byan+1 = f1(n)an + f2(n)an−1 + f3(n)an−2.

Define an auxiliary sequence (bn)∞n=1 by

bn = an+1 − λ(n)an. Then (bn) is degree 2.

45

Page 46: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrences of Higher Degree

Use recurrence relation of degree 3 as an example.Similar main idea: reduce the degree.

Define the sequence {an}∞n=1 byan+1 = f1(n)an + f2(n)an−1 + f3(n)an−2.

Define an auxiliary sequence (bn)∞n=1 by

bn = an+1 − λ(n)an. Then (bn) is degree 2.

46

Page 47: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Linear Recurrences of Higher Degree

Use recurrence relation of degree 3 as an example.Similar main idea: reduce the degree.

Define the sequence {an}∞n=1 byan+1 = f1(n)an + f2(n)an−1 + f3(n)an−2.

Define an auxiliary sequence (bn)∞n=1 by

bn = an+1 − λ(n)an. Then (bn) is degree 2.

47

Page 48: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

AppendixMultiplicative Recurrence Relations

48

Page 49: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Generalization to Multiplicative Recurrence Relations

Define sequence (An)∞n=1 by the recurrence relation

An+1 = Af (n)n Ag(n)

n−1 with initial values A1, A2.

Then the closed form of An is An = Axn2 Ayn

1 , where theexponents (xn) and (yn) satisfy the linear recurrencerelations

xn+1 = f (n)xn + g(n)xn−1

yn+1 = f (n)yn + g(n)yn−1

with initial values

x1 = 0, x2 = 1,y1 = 1, y2 = 0.

49

Page 50: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Generalization to Multiplicative Recurrence Relations

Define sequence (An)∞n=1 by the recurrence relation

An+1 = Af (n)n Ag(n)

n−1 with initial values A1, A2.

Then the closed form of An is An = Axn2 Ayn

1 , where theexponents (xn) and (yn) satisfy the linear recurrencerelations

xn+1 = f (n)xn + g(n)xn−1

yn+1 = f (n)yn + g(n)yn−1

with initial values

x1 = 0, x2 = 1,y1 = 1, y2 = 0.

50

Page 51: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Generalization to Multiplicative Recurrence Relations

Again, solve for (xn) and (yn) with auxiliary functionsλ(n) and µ(n).

Let λ(n) and µ(n) satisfy limn→∞

λ(n)µ(n)

= 0.

51

Page 52: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Generalization to Multiplicative Recurrence Relations

Again, solve for (xn) and (yn) with auxiliary functionsλ(n) and µ(n).

Let λ(n) and µ(n) satisfy limn→∞

λ(n)µ(n)

= 0.

52

Page 53: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Generalization to Multiplicative Recurrence Relations

Take the main terms:xn+1 → (x2 − λ(1)x1)

n∏i=2

µ(i) =n∏

i=2µ(i),

yn+1 → (y2 − λ(1)y1)n∏

i=2µ(i) = −λ(1)

n∏i=2

µ(i).

By the closed form An = Axn2 Ayn

1 ,

log(An+1) = xn log(A2) + yn log(A1)

→ (n∏

i=2

µ(i))(log(A2)− λ(1) log(A1))

as n→∞.

53

Page 54: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Generalization to Multiplicative Recurrence Relations

Take the main terms:xn+1 → (x2 − λ(1)x1)

n∏i=2

µ(i) =n∏

i=2µ(i),

yn+1 → (y2 − λ(1)y1)n∏

i=2µ(i) = −λ(1)

n∏i=2

µ(i).

By the closed form An = Axn2 Ayn

1 ,

log(An+1) = xn log(A2) + yn log(A1)

→ (n∏

i=2

µ(i))(log(A2)− λ(1) log(A1))

as n→∞.

54

Page 55: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Benford-ness of the main term

(An) is a Benford sequence if the main term of log(An)is equidistributed mod 1.

We choose µ and the initial values such that

(log(A2)− λ(1) log(A1))n∏

i=2µ(i) is equidistributed mod

1.

55

Page 56: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Benford-ness of the main term

(An) is a Benford sequence if the main term of log(An)is equidistributed mod 1.

We choose µ and the initial values such that

(log(A2)− λ(1) log(A1))n∏

i=2µ(i) is equidistributed mod

1.

56

Page 57: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples

Remeber: The sequence {αp(n)} is equidistributed mod1 if α /∈ Q and p(n) a monic polynomial.

Our construction:log(A2)−λ(1) log(A1)

µ(1) =: α /∈ Q,

µ(i) = p(i)p(i−1) where p(n) is a non-vanishing monic

polynomial.

57

Page 58: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Examples

Remeber: The sequence {αp(n)} is equidistributed mod1 if α /∈ Q and p(n) a monic polynomial.

Our construction:log(A2)−λ(1) log(A1)

µ(1) =: α /∈ Q,

µ(i) = p(i)p(i−1) where p(n) is a non-vanishing monic

polynomial.

58

Page 59: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Open Questionsand

References

59

Page 60: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Open Questions

1 We mainly consider the case when λ(n)µ(n) → 0 as

n→∞. What about when λ(n)µ(n) →∞? In this case,

there is no simple dominating term.

2 Applications of recurrence relations when f (n) andg(n) are random variables?

60

Page 61: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Open Questions

1 We mainly consider the case when λ(n)µ(n) → 0 as

n→∞. What about when λ(n)µ(n) →∞? In this case,

there is no simple dominating term.

2 Applications of recurrence relations when f (n) andg(n) are random variables?

61

Page 62: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

Acknowledgement

The presenters are partially supported by NSF grants, theUniversity of Michigan, and Williams College. We aregrateful to our excellent advisor Professor Steven J. Millerfor valuable guidance, and thanks the other contributorsMadeleine Farris and Noah Luntzlara for help.

62

Page 63: Linear Recurrence Relations with Non-constant Coefficients ......Linear Recurrence Relations of Degree 2 a n+1 = f(n)a n +g(n)a n 1 with non-constant coefficients f(n) and g(n). Explore

Introduction General Theory Linear Appendix (Multi) Open Questions

References

P. Diaconis, The Distribution of Leading Digits and UniformDistribution Mod 1, The Annals of Probability 5 (1977), No. 1,72–81.

D. Jang, J. U. Kang, A. Kruckman, J. Kudo, and S. J. Miller,Chains of Distributions, Hierarchical Bayesian Models andBenford’s Law, preprint, 2008.https://arxiv.org/pdf/0805.4226.pdf.

A. Kontorovich and S. J. Miller, Benford’s Law, Values ofL-functions and the 3x + 1 Problem, Acta Arithmetica, 120(2005), 269–297.

P. K. Romano and H. Mclaughlin, On Non-Linear RecursiveSequences and Benford’s Law, Fibonacci Quarterly, 49 (2011),134–138.

T. Tao, 254B, Notes 1: Equidistribution of polynomial sequencesin tori 254A, 2010,https://terrytao.wordpress.com/2010/03/28/254b-notes-1-equidistribution-of-polynomial-sequences-in-torii/.63