Register
|
Login
Published News
Upcoming News
Submit a New Story
Groups
News
World
Politics
Business
Technology
Cool Sites
How To
Research
Programming
Games
Entertainment
Films
TV
Hot
Education
Results
Jobs
Sports
Life Style
Health
Travel
Food
Automobiles
States
Kerala
Interview Questions
Puzzles
Programming Questions
Everything Else
Fun
Photography
CS Resources
RSS
1
Vote
Number of ways of chosing k numbers without replacement from n with no consecutive elements selected
Posted by
csguy (#13)
529 days ago (Editorial)
let f(n, k) be the # of ways of choosing k integers without replacement from
n consecutive integers so that no two selected are consecutive.
Who Voted for this Story
csguy
Comments
Written by
csguy (#13)
529 days ago
f(n,k)=f(n-2,k-1)+f(n-1,k)
f(n-2,k-1) if last element is selected
f(n-1,k) if last element is not selected
-
0
+
Log in to comment
or register
here
.
What is IndiaDiscuss?
Indian Social News and Links Network
Top Users
Tag cloud
Live