I was trying to derive following equation to compute the nth fibonacci number in O(log(n)) time. F(2n) = (2*F(n-1) + F(n)) * F(n) which i found on wiki form the fibonacci matrix equation stated there but i stuck in deriving it. I understood the derivation till the (-1)^n = F(n+1)*F(n-1) – F(n)^2 but then how […]

Given a function $f(x)$ of the form: $$f(x) = x/(a_0x^0+a_1x^1+a_2x^2+a_3x^3+a_4x^4+a_5x^5+…a_nx^n)$$ Let $A$ be an arbitrary (any) infinite lower triangular matrix with ones in the diagonal: $$A = \left(\begin{array}{cccc} 1 & 0 & 0 & 0 \\ 1 & 1 & 0 & 0 \\ 1 & 1 & 1 & 0 \\ 1 & 1 […]

In the normal derangement problem we have to count the number of derangement when each counter has just one correct house,what if some counters have shared houses. A derangement of n numbers is a permutation of those numbers in which none of the numbers appears in its original place. For example, the numbers {1,2,3} can […]

I’m trying to figure out how the math in the Josephus problem works exactly. I first heard of it for programming purposes so that’s where my focus has been. The formula does seem to be recursive from what I can tell, and that’s what’s been killing me in solving it out by hand for any […]

I have a series of numbers called the Foo numbers, where $F_0 = 1, F_1=1, F_2 = 1 $ then the general equation looks like the following: $$ F_n = F_{n-1}(F_{n-2}) + F_{n-3} $$ So far I have got the equation to look like this: $$T_n = T_{n-1}*T_{n-2} + T_{n-3}$$ I just don’t know how […]

I need to figure out the sum of the series as quickly as possible in a program given n and k: $$f(n,k)= \frac{\sum_{i=0}^{n-1}f(i,k-1)}{n} $$ and $ f(i,0) =i $ for all $i$. I did some paper work and brought the solution to $$f(n,k)=\frac{f(n-1,k-1)}{n} + \frac{(n-1)f(n-1,k)}{n} $$ But I need a closed form solution. Is it […]

I understand how to apply Karatsuba multiplication in 2 digit integers. $$\begin{array} \quad & \quad & x & y \\ \times & \quad & z & w \\ \hline \quad &?&?&? \end{array}$$ $$\begin{align} i & = zx \\ ii & = wy \\ iii & = (x+y)(w+z) \end{align}$$ and the result is $$i \cdot 10^2n […]

I want to find a recurrence relation for number of decimal numbers with length n, (we called $a_0$ ) that not includes 0 and any combination of 11,12, 21. i see the result is: $a_n=15a_{n-2}+7a_{n-1}$ How this was calculated? any hint or idea highly appreciated.

Scroll down to the update to see what I am meaning. The Mathematica program below finds a solution to the equation: $$\sum _{n=1}^5 \frac{1}{n^x}+\sum _{n=1}^5 \frac{1}{n^y}=0$$ My question is if you can generalize this algorithm or iterated formula to partial sums of any length, not just $n=5$? The solution I have found is: $x=-2.30158037691463871425027298453 + […]

I am trying to solve this four parameter recurrence from exercise 1.16 in Concrete Mathematics: \[ g(1)=\alpha \] \[ g(2n+j)=3g(n)+\gamma n+\beta_j \] \[ \mbox{for}\ j=0,1\ \mbox{and}\ n\geq1 \] I have assumed the closed form to be: $$g(n) = A(n)\alpha+B(n)\gamma+C(n)\beta_0+D(n)\beta_1$$ Next i plugged $g(n)=1$ in the recurrence equations from which I obtained $\alpha=0 ,\beta_0=-2,\beta_1=-2$ and $\gamma=0$ […]

Intereting Posts

Lipschitz and uniform continuity
Probability that two random numbers are coprime
The Sum of the series $\sum\limits_{n=0}^{\infty}\frac{1}{n^2+3}$
Exercise from Stein with partial differential operator
Subgroups of Prime Power Index
How to prove $2+2=4$ using axioms of real number system?
In NBG set theory how could you state the axiom of limitation of size in first-order logic?
Transformation T is… “onto”?
If $f(x)$ is uniformly continuous at $(0,1)$ then is it bounded at $(0,1)$?
Proving that if $f: \mathbb{C} \to \mathbb{C} $ is a continuous function with $f^2, f^3$ analytic, then $f$ is also analytic
Every point of a grid is colored in blue, red or green. How to prove there is a monochromatic rectangle?
Find the expectiation of $\displaystyle\frac{X_1 + \dots + X_m}{X_1 + \dots + X_n}$
Who has the upper hand in a generalized game of Risk?
Topologically equivalent metric
pandigital rational approximations to the golden ratio and the base of the natural logarithm