Last Digit of factors

This topic has expert replies
User avatar
Master | Next Rank: 500 Posts
Posts: 490
Joined: Thu Jul 04, 2013 7:30 am
Location: Chennai, India
Thanked: 83 times
Followed by:5 members

Last Digit of factors

by Uva@90 » Tue Oct 22, 2013 9:54 pm
If N is a positive integer, what is the last digit of 1! + 2! + ... +N!?
(1) N is divisible by 4
(2) (N^2 + 1)/5 is an odd integer.

OA D

Regards,
Uva.
Known is a drop Unknown is an Ocean
Source: — Data Sufficiency |

User avatar
Legendary Member
Posts: 1556
Joined: Tue Aug 14, 2012 11:18 pm
Thanked: 448 times
Followed by:34 members
GMAT Score:650

by theCodeToGMAT » Tue Oct 22, 2013 10:59 pm
N --> Positive

1! = 1
1! + 2! = 3
1! + 2! +3! = 9
1! + 2! +3! + 4! = xx3
From "5!" each term will have "0" as last digit because the factors will consist 2 & 5

Statement 1:
N is divisible by 4
N >= 4
Unit digit "3"
SUFFICIENT

Statement 2:
(N^2 + 1)/5
The number must be divisible by "5"
N = 2 , unit Digit = "3"
above this all will have "3" as unit digit
SUFFICIENT

Answer [spoiler]{D}[/spoiler]
Last edited by theCodeToGMAT on Tue Oct 29, 2013 1:16 am, edited 1 time in total.
R A H U L

User avatar
Master | Next Rank: 500 Posts
Posts: 490
Joined: Thu Jul 04, 2013 7:30 am
Location: Chennai, India
Thanked: 83 times
Followed by:5 members

by Uva@90 » Tue Oct 22, 2013 11:07 pm
theCodeToGMAT wrote:N --> Positive

1! = 1
1! + 2! = 3
1! + 2! +3! = 9
1! + 2! +3! + 4! = xx3
From "5!" each term will have "0" as last digit because the factors will consist 2 & 5

Statement 1:
N is divisible by 4
N >= 4
Unit digit "3"
SUFFICIENT

Statement 2:
(N^2 + 1)/5
The number must be divisible by "5"
N = 2 , unit Digit = "3"
N = 4 , Unit Digit = 3
above this all will have "3" as unit digit
SUFFICIENT

Answer [spoiler]{D}[/spoiler]
Thanks Rahul,
I got your solution.
Take away from here any factorial(integer) greater than 4 end with 0.

Regards,
Uva.
Known is a drop Unknown is an Ocean

User avatar
GMAT Instructor
Posts: 3650
Joined: Wed Jan 21, 2009 4:27 am
Location: India
Thanked: 267 times
Followed by:80 members
GMAT Score:760

by sanju09 » Tue Oct 22, 2013 11:15 pm
Uva@90 wrote:If N is a positive integer, what is the last digit of 1! + 2! + ... +N!?
(1) N is divisible by 4
(2) (N^2 + 1)/5 is an odd integer.

OA D

Regards,
Uva.
Nicely attempted by Rahul. Message is this simple: as long as N is 4 or more, the unit's digit of 1! + 2! + ... +N! is 3. The statement (1) confirms that N is 4 or more, and to add little to that since N = 2 too satisfy the St (2), still the answer remains to be 3.

1! + 2! = 1 + 2 = 3.

Hence [spoiler]D[/spoiler].
The mind is everything. What you think you become. -Lord Buddha



Sanjeev K Saxena
Quantitative Instructor
The Princeton Review - Manya Abroad
Lucknow-226001

www.manyagroup.com

Junior | Next Rank: 30 Posts
Posts: 12
Joined: Tue Sep 20, 2011 4:14 am
Thanked: 1 times

by ankitbagla » Wed Oct 23, 2013 8:46 am
as per my understanding
if N is div by 4 then N can be 4,8,12, and so on . But we don't have to look for N>5 because in that case last digit will be 0. but when N=4 then last digit is 5. how can this alone be sufficient?
Please correct me if i am wrong in my approach.

GMAT/MBA Expert

User avatar
GMAT Instructor
Posts: 16207
Joined: Mon Dec 08, 2008 6:26 pm
Location: Vancouver, BC
Thanked: 5254 times
Followed by:1268 members
GMAT Score:770

by Brent@GMATPrepNow » Wed Oct 23, 2013 8:57 am
ankitbagla wrote:as per my understanding
if N is div by 4 then N can be 4,8,12, and so on . But we don't have to look for N>5 because in that case last digit will be 0. but when N=4 then last digit is 5. how can this alone be sufficient?
Please correct me if i am wrong in my approach.
Let's take theCodeToGMAT's great solution and examine a few more terms.

1! = 1
1! + 2! = 1 + 2 = 3
1! + 2! +3! = 1 + 2 + 6 = 9
1! + 2! +3! + 4! = 1 + 2 + 6 + 24 = 33
1! + 2! +3! + 4! + 5! = 1 + 2 + 6 + 24 + 120 = 153
1! + 2! +3! + 4! + 5! + 6! = 1 + 2 + 6 + 24 + 120 + 720= 873
1! + 2! +3! + 4! + 5! + 6! + 7! = 1 + 2 + 6 + 24 + 120 + 720 + 5040 = 5913
.
.
.

As you can see, once we get to adding 5!, EVERY sum will have 3 as its units digit.
So, if N > 4, the sum will have 3 as its units digit.

Statement 1 ensures that N > 4

Statement 2 ensures that N is either 2 or an integer greater than 4. In both of these cases, the units digit is guaranteed to be 3.

Cheers,
Brent
Last edited by Brent@GMATPrepNow on Thu Oct 24, 2013 5:58 am, edited 1 time in total.
Brent Hanneson - Creator of GMATPrepNow.com
Image

User avatar
GMAT Instructor
Posts: 3650
Joined: Wed Jan 21, 2009 4:27 am
Location: India
Thanked: 267 times
Followed by:80 members
GMAT Score:760

by sanju09 » Thu Oct 24, 2013 4:58 am
Brent@GMATPrepNow wrote:
ankitbagla wrote:as per my understanding
if N is div by 4 then N can be 4,8,12, and so on . But we don't have to look for N>5 because in that case last digit will be 0. but when N=4 then last digit is 5. how can this alone be sufficient?
Please correct me if i am wrong in my approach.
Let's take theCodeToGMAT's great solution and examine a few more terms.

1! = 1
1! + 2! = 1 + 2 = 3
1! + 2! +3! = 1 + 2 + 6 = 9
1! + 2! +3! + 4! = 1 + 2 + 6 + 24 = 33
1! + 2! +3! + 4! + 5! = 1 + 2 + 6 + 24 + 120 = 153
1! + 2! +3! + 4! + 5! + 6! = 1 + 2 + 6 + 24 + 120 + 720= 873
1! + 2! +3! + 4! + 5! + 6! + 7! = 1 + 2 + 6 + 24 + 120 + 720 + 5040 = 5913
.
.
.

As you can see, once we get to adding 5!, EVERY sum will have 3 as its units digit.
So, if N > 4, the sum will have 3 as its units digit.

Statements 1 and 2 each ensure that N > 4

Cheers,
Brent
I don't think that St (2) ensures that N ≥ 4, it's possible at N = 2 too.
The mind is everything. What you think you become. -Lord Buddha



Sanjeev K Saxena
Quantitative Instructor
The Princeton Review - Manya Abroad
Lucknow-226001

www.manyagroup.com

GMAT/MBA Expert

User avatar
GMAT Instructor
Posts: 16207
Joined: Mon Dec 08, 2008 6:26 pm
Location: Vancouver, BC
Thanked: 5254 times
Followed by:1268 members
GMAT Score:770

by Brent@GMATPrepNow » Thu Oct 24, 2013 5:59 am
sanju09 wrote: I don't think that St (2) ensures that N ≥ 4, it's possible at N = 2 too.
Good catch - I edited my response accordingly.

Cheers,
Brent
Brent Hanneson - Creator of GMATPrepNow.com
Image

User avatar
GMAT Instructor
Posts: 3650
Joined: Wed Jan 21, 2009 4:27 am
Location: India
Thanked: 267 times
Followed by:80 members
GMAT Score:760

by sanju09 » Thu Oct 24, 2013 10:11 pm
In fact most of the positive integers N ending in 2, 3, 7, or 8 are fit in St (2). Do you agree Brent?
The mind is everything. What you think you become. -Lord Buddha



Sanjeev K Saxena
Quantitative Instructor
The Princeton Review - Manya Abroad
Lucknow-226001

www.manyagroup.com

GMAT/MBA Expert

User avatar
GMAT Instructor
Posts: 16207
Joined: Mon Dec 08, 2008 6:26 pm
Location: Vancouver, BC
Thanked: 5254 times
Followed by:1268 members
GMAT Score:770

by Brent@GMATPrepNow » Fri Oct 25, 2013 5:57 am
sanju09 wrote:In fact most of the positive integers N ending in 2, 3, 7, or 8 are fit in St (2). Do you agree Brent?
No, I don't agree.

First of all, I'm not sure how such a generalization would help us.
For statement 2, once we've ruled out the possibility that N = 1 or 3 (and shown that N = 2 yields a units digit of 3) then we have sufficiency (since all values of N > 4 also yield a units digit of 3).

Second, and more importantly, positive integers N ending in 3 and 7 will never meet the condition that (N² + 1)/5 is an ODD integer.

Cheers,
Brent
Brent Hanneson - Creator of GMATPrepNow.com
Image

Junior | Next Rank: 30 Posts
Posts: 29
Joined: Thu Oct 03, 2013 11:35 am
Thanked: 1 times

by kop » Sat Oct 26, 2013 2:38 am
Brent@GMATPrepNow wrote:
sanju09 wrote:In fact most of the positive integers N ending in 2, 3, 7, or 8 are fit in St (2). Do you agree Brent?
No, I don't agree.

First of all, I'm not sure how such a generalization would help us.
For statement 2, once we've ruled out the possibility that N = 1 or 3 (and shown that N = 2 yields a units digit of 3) then we have sufficiency (since all values of N > 4 also yield a units digit of 3).

Second, and more importantly, positive integers N ending in 3 and 7 will never meet the condition that (N² + 1)/5 is an ODD integer.

Cheers,
Brent





Hi Gurus,
Please explain me the stat2 more elaborately:
Suppose n=12 and (N² + 1)/5 = 145/5 = 29 . In this case unit digit is not 3??
Please explain.
Thanks

Junior | Next Rank: 30 Posts
Posts: 29
Joined: Thu Oct 03, 2013 11:35 am
Thanked: 1 times

by kop » Sat Oct 26, 2013 2:38 am
Brent@GMATPrepNow wrote:
sanju09 wrote:In fact most of the positive integers N ending in 2, 3, 7, or 8 are fit in St (2). Do you agree Brent?
No, I don't agree.

First of all, I'm not sure how such a generalization would help us.
For statement 2, once we've ruled out the possibility that N = 1 or 3 (and shown that N = 2 yields a units digit of 3) then we have sufficiency (since all values of N > 4 also yield a units digit of 3).

Second, and more importantly, positive integers N ending in 3 and 7 will never meet the condition that (N² + 1)/5 is an ODD integer.

Cheers,
Brent





Hi Gurus,
Please explain me the stat2 more elaborately:
Suppose n=12 and (N² + 1)/5 = 145/5 = 29 . In this case unit digit is not 3??
Please explain.
Thanks

User avatar
Legendary Member
Posts: 1556
Joined: Tue Aug 14, 2012 11:18 pm
Thanked: 448 times
Followed by:34 members
GMAT Score:650

by theCodeToGMAT » Sat Oct 26, 2013 3:23 am
Kop, in my solution we have observed a pattern that starting from N=5 all the digits will have unit digit 0 because factors 2 & 5 will be present in all those factorials.

According to statement 2, N can be 2, 4, etc.. Because they will yield odd quotient .

Now, 1! +2!= 3
And, 1!+2!+3!+4!= 33
Both have 3 as unit digit.

Also, as we stated, 5! Onwards wil have unit digit as 0.. So, unit digit will be "3" only
R A H U L

Master | Next Rank: 500 Posts
Posts: 269
Joined: Thu Sep 19, 2013 12:46 am
Thanked: 94 times
Followed by:7 members

by mevicks » Sat Oct 26, 2013 3:33 am
kop wrote: Suppose n=12 and (N² + 1)/5 = 145/5 = 29 . In this case unit digit is not 3??
Hi Kop,

You are losing sight of the target (original) question this DS asks:
Q: what is the last digit of 1! + 2! + ... +N!

You have correctly pointed out that when n = 12 the statement 2 yields a value 29 (which is odd) BUT we need to go a step further and evaluate the TARGET question with this value of n (although not required as we have crossed the problematic barrier of n = 4)

When n = 12 (i.e greater than 4) the sum of the first 12 factorials would always yield a units digit 3 (dont forget that n = 2 also yields a units digit 3)

Thus st2. is SUFFICIENT

Hope that helps.

User avatar
GMAT Instructor
Posts: 3650
Joined: Wed Jan 21, 2009 4:27 am
Location: India
Thanked: 267 times
Followed by:80 members
GMAT Score:760

by sanju09 » Sun Oct 27, 2013 1:52 am
Brent@GMATPrepNow wrote:
sanju09 wrote:In fact most of the positive integers N ending in 2, 3, 7, or 8 are fit in St (2). Do you agree Brent?
No, I don't agree.

First of all, I'm not sure how such a generalization would help us.
For statement 2, once we've ruled out the possibility that N = 1 or 3 (and shown that N = 2 yields a units digit of 3) then we have sufficiency (since all values of N > 4 also yield a units digit of 3).

Second, and more importantly, positive integers N ending in 3 and 7 will never meet the condition that (N² + 1)/5 is an ODD integer.

Cheers,
Brent
Oh yeah! I involved both even and odd in my generalization and that again is incomplete. I should have meant that

In fact all the positive integers N ending in 2,3, 7, or 8 yield a positive integer in St (2).

But we've to look for the odd integers only, which is obtained only when the positive integer N ends in a 2 or 8. You caught me right Brent, score settled :D
The mind is everything. What you think you become. -Lord Buddha



Sanjeev K Saxena
Quantitative Instructor
The Princeton Review - Manya Abroad
Lucknow-226001

www.manyagroup.com