Solved

n-digit numbers created using digits 5 and 9, where no four identical digits stand side by side.

Posted on 2015-02-12
2
95 Views
Last Modified: 2015-02-12
How many n-digit numbers can be created using only digits 5 and 9, where no four identical digits stand side by side?
0
Comment
Question by:Nusrat Nuriyev
2 Comments
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 40606194
a[1] = 2
a[2] = 4
a[3] = 8
a[n] = a[n - 1] + a[n - 2] + a[n - 3]
https://oeis.org/A135491
0
 

Author Comment

by:Nusrat Nuriyev
ID: 40606261
ozo, also, this a[n]=a[n-1]+a[n-2]+a[n-3] gives us the n-digit numbers which can be created using only digits 5 and 9, where no three ones stand side by side. (but this does not mentioned in OEIS)

Could you explain why this sequence solves my original question? For better understanding.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

One of Google's most recent algorithm changes affecting local searches is entitled "The Pigeon Update." This update has dramatically enhanced search inquires for the keyword "Yelp." Google searches with the word "Yelp" included will now yield Yelp a…
Article by: Nadia
Linear search (searching each index in an array one by one) works almost everywhere but it is not optimal in many cases. Let's assume, we have a book which has 42949672960 pages. We also have a table of contents. Now we want to read the content on p…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now