All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Just Math
Quadratic With A Difference (Posted on 2008-04-15) Difficulty: 2 of 5
Determine all possible integer pair(s) (C, D) that satisfy this equation:

C2 - 3CD = C - D

See The Solution Submitted by K Sengupta    
Rating: 5.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Computer & Not much to this one | Comment 4 of 5 |
Firstly to FrankM.  What precludes C not being "0"?  A simple substitution of that value necessarily renders D to "0".

The following program listing:......

 CLS

 PRINT "Increase from 0 to 100"
 FOR c = 0 TO 100
  FOR d = 0 TO 100
   IF (c * c - 3 * c * d = c - d) THEN PRINT c, d
  NEXT
 NEXT
PRINT "both negatives"
 FOR c = -100 TO 0 STEP 1
  FOR d = -100 TO 0 STEP 1
    IF (c * c - 3 * c * d = c - d) THEN PRINT c, d
  NEXT
 NEXT
PRINT "C pos D neg"
 FOR c = 0 TO 100
  FOR d = -100 TO 0 STEP 1
    IF (c * c - 3 * c * d = c - d) THEN PRINT c, d
  NEXT
 NEXT
PRINT "C neg D pos"
 FOR c = -100 TO 0 STEP 1
  FOR d = 0 TO 100
    IF (c * c - 3 * c * d = c - d) THEN PRINT c, d
  NEXT
 NEXT

............produced this as a screen output:

Increase from 0 to 100
 0             0
 1             0
both negatives
 0             0
C pos D neg
 0             0
 1             0
C neg D pos
 0             0


To look for integer pairs I chose the respective possible pairings of positive and negative within the |100| range certain of the outcome anyway.


  Posted by brianjn on 2008-04-15 23:34:25
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (23)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information