LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices

Reply
 
LinkBack Search this Thread
Old 09-01-2003, 12:19 AM   #1
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Rep: Reputation: 32
Solving a recursive relation ....


I am having problems solving this recursive relation .

Can someone help me with this


a(n) = -2n.a(n-1) +3n(n-1).a(n-2)

a(0) =1, a(1) = 2

Now I need to express a(n) as a function of n and not in terms of
a(n-1) and a(n-2) ;;
 
Old 09-01-2003, 12:24 AM   #2
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Do you mean simplifying it?
 
Old 09-01-2003, 12:24 AM   #3
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 45
I don't talk to evil beings. Satan, go away.
 
Old 09-01-2003, 12:37 AM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
reply?

Last edited by Skyline; 09-01-2003 at 12:54 AM.
 
Old 09-01-2003, 01:02 AM   #5
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,611

Rep: Reputation: 61
Quote:
Originally posted by Whitehat
I don't talk to evil beings. Satan, go away.
Although this literally had me laughing out loud, and couldn't type for a minute, I think in the future you may wanna reconsider posting such EXTREMELY humerous things until the person has their issue solved, even if it means resisting the greatest of urges

Cool
 
Old 09-01-2003, 01:33 AM   #6
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Original Poster
Rep: Reputation: 32
Quote:
Originally posted by Skyline
Do you mean simplifying it?
Yeah a(n) should be expressed as a function of only n
and not as function of a(n-1),a(n-2)......

1.e , a(n) should be of format

x. n ^ y + z . w^n + ......

where , a^b stands for a raised to the power b

Last edited by SaTaN; 09-01-2003 at 01:36 AM.
 
Old 09-01-2003, 01:40 AM   #7
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Original Poster
Rep: Reputation: 32
Quote:
Originally posted by Whitehat
I don't talk to evil beings. Satan, go away.
This is what I found somewhere else in this forum and maybe you haven't seen it

Quote:

When you respond (as the first responder) to a thread with 0 replies it loses more than half it's viewers. Several people browse this board on quite slow connections, so they tend to glimpse over the forum, find a post they can respond to with 0 replies (meaning they don't have to read through a swarm of other posts) and post. If you respond with things like "Me to" or simple phrases like such, then those members will likely go without ever seeing the post. It really is a dis-service to the originator.

If you want to help , no one will stop you from doing it . But ,
please don't stop others from helping me.

Last edited by SaTaN; 09-01-2003 at 03:53 AM.
 
Old 09-01-2003, 09:56 AM   #8
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 45
Gotcha

I will try to be more helpful next time instead of being Mr. Funnyman

Peace.
 
Old 09-01-2003, 10:34 AM   #9
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Original Poster
Rep: Reputation: 32
Sorry WhiteHat , if I were a bit rude ......I hope you don't mind

What's it guys ??? Is it that NoOne does MATHS over here .
coz not even one ray of light in the right direction ..
 
Old 09-01-2003, 11:00 AM   #10
Whitehat
Senior Member
 
Registered: Feb 2003
Location: The Cold North
Distribution: SuSE 9.1
Posts: 1,289

Rep: Reputation: 45
It's cool. You were fine

I think not a lot of people do math because they don't need it. Like me....I was never a Compsci major. I was a marketing/business major. Didn't need a lot of math...
 
Old 09-01-2003, 11:33 AM   #11
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Rep: Reputation: 45
Hi there. I see you are from Hyderabad. Is that in Pakistan or India?
But never mind that. This recrucive formula seems kinda hard. Do you know what a Z transform is? It's the descrete counterpart of the fourier transform. Aplie a Z transform on both sides and see where you get. After simplyfing the resulting equation, aply an inverse Z transform to get a(n).
Tell me if you understand what i'm saying. It's quite possible you don't know that a Z transform is, or you call it differently.
 
Old 09-01-2003, 11:41 AM   #12
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Original Poster
Rep: Reputation: 32
I am frm India .

I dunno what a Z-transform is .....

I use "Discrete Mathematics and Applications -- Kenneth H. Rosen"

Atleast tell me which book and where am I supposed to look for this


Thanx
 
Old 09-01-2003, 12:09 PM   #13
quietguy47
Member
 
Registered: Mar 2003
Location: Everett
Distribution: Slackware 13.37
Posts: 784

Rep: Reputation: 31
Maybe this will help.
http://mathworld.wolfram.com/Z-Transform.html
I don't know math(very well) but I know google.com
 
Old 09-01-2003, 04:38 PM   #14
schatoor
Senior Member
 
Registered: Jul 2002
Location: a tiny place caled hendrik ido ambacht in the netherlands
Distribution: SuSE, debian, slackware, lfs
Posts: 1,358

Rep: Reputation: 45
No, if you don't know what a Z transform is, you probebly don't need to solve it that way.
I find this problem quite hard to solve because it's not linear. I don't understand how to solve somthing like that. I looked in my books and on the net I tried solving it my self. I can't seem to crack it.
What I tried doing was guessing an form of an solution and filling in the parameters. For instance, I looked if there were solutions of the form a(n)=r^n, where r is an arbitrary parameter. But no matter who you choose r, the equations just doesn't solve, because filling things in you equation:

Code:
a(n) = -2n*a(n-1)+3n(n-1)*a(n-2) <=>
r^n = -2n*r^(n-1)+3n(n-1)*r^(n-2) <=>
r^n = r^n*(-2n*r^-1+3*n(n-1)*r^-2)

from this it is clear that 

-2n*r^-1+3*n(n-1)*r^-2 = 1 for every n={...,-2,-1,0,1,2,....}

But that's not possible
I also tried it with a(n)=n^k*r^n with k an r arbitrary constants, but no luck

I hope you can crack the case. Good luck. And do tell me how it's supposed to be solved.
 
Old 09-01-2003, 10:21 PM   #15
endorphinjunkie
Member
 
Registered: Feb 2003
Location: Great Southern Forrest
Distribution: Fedora Core on the desktop, Mandrake 9.2 on the laptop
Posts: 105

Rep: Reputation: 15
Try substitution,

say, b = n + 2 and solve for b. when you know b, you will know n.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
solving dependencies on fedora 3, ? vtecturbo13 Linux - Software 4 10-20-2005 11:33 PM
solving rpm dependencies Kanchan Linux - Software 2 02-03-2005 05:37 AM
Solving my Headache Sophic Linux - Wireless Networking 6 03-29-2004 11:27 AM
Partition problem solving... true_atlantis Linux - General 5 10-30-2003 12:16 PM
relation between classes Jo_Nak Programming 2 07-28-2003 01:48 PM


All times are GMT -5. The time now is 05:37 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration