Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Panamo/Xtreme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xtreme

Introduction

Problems

Digit Fun

Recurrence relations are an important tool for the computer scientist. Many algorithms, particularly those that use divide and conquer, have time complexities best modeled by recurrence relations. A recurrence relation allows us to recursively define a sequence of values by defining the nth value in terms of certain of its predecessors. Many natural functions, such as factorials and the Fibonacci sequence, can easily be expressed as recurrences. The function of interest for this problem is described below. Let $|A_n|$ denote the number of digits in the decimal representation of $A_n$. Given any number $A_0$, we define a sequence using the following recurrence:
$A_i = |A_{i-1}| for i > 0$
The goal of this problem is to determine the smallest positive i such that $A_i = A_{i-1}$.

Releases

No releases published

Packages

No packages published