Problem 150

A place to air possible concerns or difficulties in understanding ProjectEuler problems. This forum is not meant to publish solutions. This forum is NOT meant to discuss solution methods or giving hints how a problem can be solved.
Forum rules
As your posts will be visible to the general public you are requested to be thoughtful in not posting anything that might explicitly give away how to solve a particular problem.

This forum is NOT meant to discuss solution methods for a problem.

In particular don't post any code fragments or results.

Don't start begging others to give partial answers to problems

Don't ask for hints how to solve a problem

Don't start a new topic for a problem if there already exists one


See also the topics:
Don't post any spoilers
Comments, questions and clarifications about PE problems.
Post Reply
deinst
Posts: 1
Joined: Thu Jun 21, 2007 7:04 pm

Problem 150 typo

Post by deinst »

"elememts" is a typo
GraemeMcRae
Posts: 46
Joined: Thu Jul 12, 2007 9:59 pm

Re: Problem 150 typo

Post by GraemeMcRae »

Also,
Problem 148: "wich" is a typo
Problem 154: "calulate" is a typo
Problem 155: "elecric" is a typo
Problem 158: "characterstrings" is a typo

(I'll let you slide on the double L's in words like cancelled, and the ou in colour as well as the -ise in standardise because people in some very remote parts of the world regard these spellings as -- though it may be hard to believe -- correct!)
User avatar
rayfil
Administrator
Posts: 1412
Joined: Sun Mar 26, 2006 5:30 am
Location: Quebec, Canada
Contact:

Re: Problem 150 typo

Post by rayfil »

people in some very remote parts of the world
The English language was certainly not invented in the U.S. but adapted in that remote part of the world by immigrants from England who may not have had the highest of education at that time. Correct spelling all depends on perspective, doesn't it? :| :wink: :D

Thanks for spotting and reporting those typos.
When you assume something, you risk being wrong half the time.
GraemeMcRae
Posts: 46
Joined: Thu Jul 12, 2007 9:59 pm

Re: Problem 150 typo

Post by GraemeMcRae »

rayfil wrote:Correct spelling all depends on perspective, doesn't it?
Indeed. I was kidding, as I think you know. In just about all of the world outside the United States, the U.K. spelling is used, so we're the remote people. I don't know whether education is a factor, but I've heard that when a country is colonized, the language stops developing for a time. It somehow loses whatever momentum it had. The result, 200 years later, is a language in the colony that is very similar to that of the mother country 200 years ago. So not only does our notion of "correct" language vary from place to place, but also from time to time.
User avatar
JamieCamardelle
Posts: 20
Joined: Wed May 14, 2008 5:34 am

Problem 150

Post by JamieCamardelle »

I wonder if degenerate triangles should be considered - should a single term of the sequence sk be considered a subtriangle sum?
Expand
### spoiler removed - ed_r ###
User avatar
jaap
Posts: 588
Joined: Tue Mar 25, 2008 3:57 pm
Contact:

Re: question on problem 150

Post by jaap »

JamieCamardelle wrote:I wonder if degenerate triangles should be considered - should a single term of the sequence sk be considered a subtriangle sum?
I think so, that would be a triangle of size 1.
User avatar
ed_r
Posts: 1009
Joined: Sun Jul 29, 2007 10:57 am

Re: question on problem 150

Post by ed_r »

Jamie, your hidden text was a bit too close to being a spoiler. So I removed it.
!647 = &8FDF4C
elr
Posts: 67
Joined: Thu Apr 09, 2009 9:47 am

Re: Problem 150

Post by elr »

does triangles that made of a single number allowed ?
Image
User avatar
rayfil
Administrator
Posts: 1412
Joined: Sun Mar 26, 2006 5:30 am
Location: Quebec, Canada
Contact:

Re: Problem 150

Post by rayfil »

Would you consider a single point as a triangle :?:
When you assume something, you risk being wrong half the time.
TripleM
Posts: 384
Joined: Fri Sep 12, 2008 3:31 am

Re: Problem 150

Post by TripleM »

I can certainly draw a triangle around one number in the array.
User avatar
mvaneerde
Posts: 4
Joined: Mon Dec 05, 2011 12:06 am
Location: Redmond, WA
Contact:

Re: Problem 150

Post by mvaneerde »

It might be worth considering the following clarification: upside-down triangles are not considered valid.
Image
User avatar
rayfil
Administrator
Posts: 1412
Joined: Sun Mar 26, 2006 5:30 am
Location: Quebec, Canada
Contact:

Re: Problem 150

Post by rayfil »

From the problem description
Sub-triangles can start at any element of the array and extend down as far as we like (taking-in the two elements directly below it from the next row
Isn't that clear enough? How could you ever make valid upside-down triangles with that definition?
When you assume something, you risk being wrong half the time.
mdean
Posts: 206
Joined: Tue Aug 02, 2011 2:05 am

Re: Problem 150

Post by mdean »

Just to make it perfectly clear, although chances are it won't be an issue, do triangles of size 1 count?
Image
User avatar
mpiotte
Administrator
Posts: 1961
Joined: Tue May 08, 2012 5:40 pm
Location: Montréal, Canada

Re: Problem 150

Post by mpiotte »

mdean wrote:Just to make it perfectly clear, although chances are it won't be an issue, do triangles of size 1 count?
Yes they count.

But consider this. What is the minimum value of a triangle of size 1? And what is the mean and standard deviation of a triangle of size k filled with independent random variables distributed according to the generator output? (Ignoring the fact that these are pseudo-random only.)
Image
Flood1993
Posts: 3
Joined: Fri May 27, 2016 6:39 pm

Re: Problem 150

Post by Flood1993 »

Could someone confirm the following values? (Generating the triangle the same way)

For 10 rows:
-1***491

For 50 rows:
-1005***9

For 500 rows:
-190***504

Thank you
User avatar
dawghaus4
Posts: 56
Joined: Fri Nov 29, 2013 2:22 am

Re: Problem 150

Post by dawghaus4 »

I agree with 10 rows, but not 50 and 500 rows.

Tom
drassont
Posts: 6
Joined: Tue Oct 07, 2025 7:08 pm

Re: Problem 150

Post by drassont »

@Flood1993: I also get the same result as you for 10 rows, but not for 50 rows.
Image
Post Reply