Click here to Skip to main content
15,914,070 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Mental arithmetic Pin
bjongejan18-Aug-20 0:50
bjongejan18-Aug-20 0:50 
PraiseRe: Mental arithmetic Pin
Joop Eggen18-Aug-20 2:23
Joop Eggen18-Aug-20 2:23 
GeneralRe: Mental arithmetic Pin
englebart18-Aug-20 2:54
professionalenglebart18-Aug-20 2:54 
GeneralRe: Mental arithmetic Pin
Caslen17-Aug-20 20:32
Caslen17-Aug-20 20:32 
GeneralRe: Mental arithmetic Pin
aserrano17-Aug-20 20:34
aserrano17-Aug-20 20:34 
GeneralRe: Mental arithmetic Pin
Jörgen Andersson17-Aug-20 20:39
professionalJörgen Andersson17-Aug-20 20:39 
GeneralRe: Mental arithmetic Pin
Member 1220722217-Aug-20 21:05
Member 1220722217-Aug-20 21:05 
GeneralRe: Mental arithmetic Pin
Member 1220722219-Aug-20 1:32
Member 1220722219-Aug-20 1:32 
Referring to my previous two solutions, here is a third and better way to do the original problem:
14^2 - 2^2 = 12*16 (difference of squares)
13^2 - 1^2 = 12*14
12^2 - 0^2 = 12*12
11^2 - (-1)^2 = 12*10
10^2 - (-2)^2 = 12*8
Adding the five lines:
(sum of squares from 10^2 to 14^2) = 5*12^2 + (sum of squares from (-2)^2 to 2^2)

This allows three more general problems to be investigated:

PROBLEM 1: Find all sums of five consecutive squares divisible by 365, and find the resulting quotients.

PROBLEM 2: Find all sums of (2n+1) consecutive squares divisible by 365, and find the resulting quotients.

PROBLEM 3: This year 2020 is a leap year. Replace 365 = 5*73 by 366 = 6*61, then by any fixed whole number.
GeneralRe: Mental arithmetic Pin
Menuki17-Aug-20 22:04
Menuki17-Aug-20 22:04 
GeneralRe: Mental arithmetic Pin
Stuart Dootson17-Aug-20 22:12
professionalStuart Dootson17-Aug-20 22:12 
GeneralRe: Mental arithmetic Pin
Menuki17-Aug-20 22:34
Menuki17-Aug-20 22:34 
GeneralRe: Mental arithmetic Pin
Member 4317199 (Paddy)17-Aug-20 23:29
Member 4317199 (Paddy)17-Aug-20 23:29 
GeneralRe: Mental arithmetic Pin
Jörgen Andersson18-Aug-20 3:56
professionalJörgen Andersson18-Aug-20 3:56 
GeneralRe: Mental arithmetic Pin
Martin ISDN17-Aug-20 23:29
Martin ISDN17-Aug-20 23:29 
GeneralRe: Mental arithmetic Pin
Member 1157700818-Aug-20 2:06
Member 1157700818-Aug-20 2:06 
GeneralRe: Mental arithmetic Pin
Jörgen Andersson18-Aug-20 3:59
professionalJörgen Andersson18-Aug-20 3:59 
GeneralRe: Mental arithmetic Pin
Andrea Simonassi18-Aug-20 2:27
Andrea Simonassi18-Aug-20 2:27 
GeneralRe: Mental arithmetic Pin
Jörgen Andersson18-Aug-20 4:01
professionalJörgen Andersson18-Aug-20 4:01 
GeneralRe: Mental arithmetic Pin
arndibble18-Aug-20 2:34
arndibble18-Aug-20 2:34 
GeneralRe: Mental arithmetic Pin
John Godin18-Aug-20 2:57
John Godin18-Aug-20 2:57 
GeneralRe: Mental arithmetic Pin
avanishrayankula18-Aug-20 5:01
avanishrayankula18-Aug-20 5:01 
GeneralRe: Mental arithmetic Pin
Member 1146760818-Aug-20 6:04
Member 1146760818-Aug-20 6:04 
GeneralRe: Mental arithmetic Pin
jsrjsr18-Aug-20 16:26
professionaljsrjsr18-Aug-20 16:26 
GeneralRe: Mental arithmetic Pin
megaadam18-Aug-20 23:33
professionalmegaadam18-Aug-20 23:33 
GeneralRe: Mental arithmetic Pin
Member 1477127419-Aug-20 5:36
Member 1477127419-Aug-20 5:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.