ChaseDream
搜索
返回列表 发新帖
查看: 787|回复: 3
打印 上一主题 下一主题

[求助] 弱问一道余数DS题

[复制链接]
跳转到指定楼层
楼主
发表于 2012-2-19 10:52:31 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
做prep08,碰到这个题,一直想不出解法,看到版上说是余数题,但没怎么看懂,请高手点拨一下吧,不甚感激!

If N is an integer and R is the reminder when (N+1)(N-1) is divided by 24, what is the value of R?

(1) N is not divisible by 2.
(2) N is not divisible by 3.
收藏收藏 收藏收藏
沙发
发表于 2012-2-19 11:41:25 | 只看该作者
选A
板凳
发表于 2012-2-19 11:55:15 | 只看该作者
1) n not divisible by 2=> n is odd=> (n-1) and (n+1) must be consective even numbers.

if n=1, 0*2/24 leaves remainder 0
if n=3, 2*4/24 leaves remainder 8
not sufficient


2) n not divisible by 3=> n can be even or 1, 5, 7, 11, 13....

if n=5, 4*6/24 leaves remainder 0
if n=2, 1*3/24 leaves remainder 3
not sufficient

together,
n must be odd and not divisible by 3=> n can be 1, 5, 7, 11, 13...
if n=7, 6*8/24 leaves remainder 0
if n=11, 10*12/24 leaves remainder 0

hence C.
地板
 楼主| 发表于 2012-2-19 13:33:55 | 只看该作者
楼上stevehong大侠正解,prep里答案是C,懂了,非常感谢!
您需要登录后才可以回帖 登录 | 立即注册

Mark一下! 看一下! 顶楼主! 感谢分享! 快速回复:

手机版|ChaseDream|GMT+8, 2025-6-3 03:04
京公网安备11010202008513号 京ICP证101109号 京ICP备12012021号

ChaseDream 论坛

© 2003-2025 ChaseDream.com. All Rights Reserved.

返回顶部