1 1 vote What is the maximum possible value of (x%3)+((x+1)%3) here x be any positive integer Unknown Category engineering-mathematics + – Aboveallplayer 783 views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply Prashant. commented Nov 23, 2016 reply Follow flag take x = 1 then 1+2= 3 2 2 replyShare Aboveallplayer commented Nov 23, 2016 reply Follow flag Ya I did 3 0 0 replyShare Please log in or register to add a comment.
Best answer 5 5 votes x % 3 can give only three values 0,1,2 when x%3=0 ------->(x+1)%3=1 ....so 0+1=1 when x%3=1 ------->(x+1)%3=2 ....so 1+2=3 when x%3=2 ------->(x+1)%3=0 ....so 2+0=2 so max value of x%3+(x+1)%3 = 3 Lokesh . answered Nov 23, 2016 • selected Nov 23, 2016 by Arjun Lokesh . comment Share Follow 0 reply Please log in or register to add a comment.