473,387 Members | 1,420 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Which pages are missing?

ashitpro
542 Expert 512MB
From a book, a number of pages are missing. The sum of the page numbers of these pages is 9808. Which pages are missing?
Aug 14 '07 #1
6 3953
arunmib
104 100+
I think multiple answers are there for this....

For eg:
1) page numbers 9806 + 2
2) page number 9800 + 8
3) page numbers 8 + 800 + 2000 + 3000 + 4000.....

Any corrections.....
Aug 14 '07 #2
ashitpro
542 Expert 512MB
Missing pages are in sequence
Aug 14 '07 #3
Darryl
86
There are 32 pages missing starting with page 291
Aug 14 '07 #4
ashitpro
542 Expert 512MB
There are 32 pages missing starting with page 291
Dear genious
You always has the answer
But,please tell us the method
Aug 14 '07 #5
Darryl
86
Dear genious
You always has the answer
But,please tell us the method
It's because you only ask for the answer, and I am not that good(clear) at explaining.
**Edit** another reason is to give others a chance to figure it out...for all they know I could be wrong

It's just algebra, more or less.

Let X = a page number
Therefore X + 1 = the next consecutive page, x+2, the page after that X+n = the last page and n+1 = total number of pages

If two pages were missing the equation would be

x + (x+1) = 9808
2x + 1 = 9808
2x = 9807
x = 4903.5 which obviously is wrong since you can't be missing half a page( well you can, but you know what I mean)

3 pages would be
x + (x+1) + (x+2) = 9808
3x+3= 9808
4 would be
x + (x+1) + (x+2) + (x+3) = 9808
4x+6

see the pattern of the second nomial? It's a simple arithmetic sequence:
F(n) = Sum (0...N)
and how it relates to the coefficient of the first?

So a general formula can be create thus:
nX + F(n-1) = 9808
nX = 9808 - F(n-1)
X = (9808-F(n-1)) / n

n = number of pages
X = begining page

I used trial and error to get the correct n, (did it in an excel spreadsheet)
Aug 14 '07 #6
jkmyoung
2,057 Expert 2GB
Each sheet of paper has 2 pages or sides.
Note that when you open a book in between 2 pages, an even number should be on the left, an odd on the right, for a traditional book.
So for a single piece of paper, it will have odd page first then even.

Let the page number be
2n+1, for some whole number n
2n+2, is the other side.
The next sheet would have
2n+3,
2n+4,

If x sheets were ripped out, we would get,

(2n+1) + (2n+2) + (2n+3) + (2n+4) + (2n+5) + (2n+6) + ... + (2n+2x - 1) + (2n + 2x)
regrouping, we get:
= (2n+1 + 2n+2x)*x
= (4n + 2x + 1) * x

Factoring 9808, we get:
2*2*2*2*613
(4n+2x+1) is odd
(4n+2x+1) = 613
-> x = 16

(4n+32+1) = 613.
4n = 580
n = 145

->2n+1 = 291
2n+2x = 322

Pages 291 -> 322 were ripped out

Note that even if you do not make the assumption that we start on an odd number, we'll still get the same result.
Aug 14 '07 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Ron Lounsbury | last post by:
We have 2 copies of our web application - Development and Checkout. We have noticed that when the QA quys go through our QA version, they will sometimes find that pages are missing the banners. ...
17
by: lawrence | last post by:
How is it possible that the question "How do I detect which browser the user has" is missing from this FAQ: http://www.faqts.com/knowledge_base/index.phtml/fid/125 and is only here on this...
5
by: rob | last post by:
Hi to all. I am pretty new to using Access and am having a problem I hope someone can help me with. I want to access a MS-Access database from a web page. I have managed to get it "sort" of...
0
by: planetthoughtful | last post by:
Hi All, It seems my installation of Visual Basic Help for Access 2003 is missing pages / entries. eg, when I do a search on 'subform' and then click on 'Me Property' in the search results, I...
1
by: Seefor | last post by:
I may be missing something, but why aren't master pages part of themes? i.e. why don't they go in the App_Themes or global Themes directory, and be referenced just by name (not full path) in the...
7
by: xkeops | last post by:
Thinking of creating a website, most of the pages will have a general toolbar menu, a content and a footer. The content will be the only one who's gonna change but the rest (header,footer) will...
5
by: pittendrigh | last post by:
There must be millions of dynamically generated html pages out there now, built by on-the-fly php code (and jsp, perl cgi, asp, etc). Programatic page generation is transparently useful. But...
8
by: Jeigh | last post by:
I did not write this script myself and am having a bit of trouble with it, it's working fine except it's missing the first piece of data for each page. This being data for each user. For example,...
1
by: deshaipet | last post by:
Hi friends - I created a automatic storage tablespace with a pagesize of 16 K and initial size of 64 MB. create large tablespace test_tbsp1 pagesize 16k managed by automatic storage autoresize...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.