CTK Exchange
Front Page
Movie shortcuts
Personal info
Awards
Reciprocal links
Terms of use
Privacy Policy

Interactive Activities

Cut The Knot!
MSET99 Talk
Games & Puzzles
Arithmetic/Algebra
Geometry
Probability
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
My Logo
Math Poll
Other Math sit's
Guest book
News sit's

Recommend this site

Manifesto: what CTK is about |Store| Search CTK Buying a book is a commitment to learning Table of content Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

CTK Exchange

Subject: "recurrence relations"     Previous Topic | Next Topic
Printer-friendly copy     Email this topic to a friend    
Conferences The CTK Exchange High school Topic #234
Reading Topic #234
tham yew fai
guest
Apr-25-03, 11:04 AM (EST)
 
"recurrence relations"
 
   the problem is:

for n>=1,let an be the number of ways to write n as an ordered sum
of positive integers where each summand is at least 2.(For example, a5=3
because here we may represent 5 by 5,by 2+3, and by 3+2) Find and solve a
recurrence relation for an.

can someone kindly teach me how to solve this?i have been thinking on it for many hours...thanx


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
Graham C
Member since Feb-5-03
Apr-26-03, 01:12 PM (EST)
Click to EMail Graham%20C Click to send private message to Graham%20C Click to view user profileClick to add this user to your buddy list  
1. "RE: recurrence relations"
In response to message #0
 
   The answer appears to be
1 (if N<3)
1 plus N-3 (if N>2)


  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top
Graham C
Member since Feb-5-03
Apr-27-03, 12:16 PM (EST)
Click to EMail Graham%20C Click to send private message to Graham%20C Click to view user profileClick to add this user to your buddy list  
2. "RE: recurrence relations"
In response to message #1
 
   >The answer appears to be
>1 (if N<3)
>1 plus N-3 (if N>2)

I'm sorry, that was careless of me. It's the answer for expressing N as one integer or the sum of two positive integers, whereas the original question obviously meant an ordered sum of any length. (though the examples given were only of two, which offers me some excuse).

To attack the problem, first change the restriction that each summand must be at least 2 to at least 1 (so that, e.g., 4 can be 1 plus 1 plus 1 plus 1). (Nonetheless 0 can still be written as '0', so the number of ways of writing 0 is 1.)

Let F(N) be the function that gives the answer for N.

The number n can be written in the following ways

N itself followed by the number of ways of writing zero
N-1 followed by the number of ways of writing 1
N-2 followed by the number of ways of writing 2
....
1 followes by the number of ways of writing N-1.

F(N) therefore equals F(0) plus F(1) plus F(2)...F(N-1).

But we need A(N) in which the summand 1 is disallowed. This can be achieved simply by taking the expression for F(N) and knocking out F(1) and F(N-1).

What remains is therefore
A(0)=1
A(N) = A(0) plus sum for i=2 to N-2 of A(I).

checking
A(0) = 1
A(1) = 1
A(2) = 1
A(3) = 1
A(4) = 2
A(5) = 3
A(6) = 5
A(7) = 8
...




  Alert | IP Printer-friendly page | Edit | Reply | Reply With Quote | Top

Conferences | Forums | Topics | Previous Topic | Next Topic

You may be curious to have a look at the old CTK Exchange archive.
Please do not post there.

|Front page| |Contents|

Copyright © 1996-2018 Alexander Bogomolny

73175999