• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 23:56
CET 05:56
KST 13:56
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
SC2 All-Star Invitational: Tournament Preview5RSL Revival - 2025 Season Finals Preview8RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2
Community News
BSL Season 2025 - Full Overview and Conclusion5Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets4$21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7)16Weekly Cups (Dec 29-Jan 4): Protoss rolls, 2v2 returns7[BSL21] Non-Korean Championship - Starts Jan 105
StarCraft 2
General
Stellar Fest "01" Jersey Charity Auction SC2 All-Star Invitational: Tournament Preview Weekly Cups (Jan 5-11): Clem wins big offline, Trigger upsets When will we find out if there are more tournament SC2 Spotted on the EWC 2026 list?
Tourneys
SC2 All-Star Invitational: Jan 17-18 SC2 AI Tournament 2026 $21,000 Rongyi Cup Season 3 announced (Jan 22-Feb 7) OSC Season 13 World Championship Sparkling Tuna Cup - Weekly Open Tournament
Strategy
Simple Questions Simple Answers
Custom Maps
Map Editor closed ?
External Content
Mutation # 508 Violent Night Mutation # 507 Well Trained Mutation # 506 Warp Zone Mutation # 505 Rise From Ashes
Brood War
General
[ASL21] Potential Map Candidates Fantasy's Q&A video BGH Auto Balance -> http://bghmmr.eu/ Potential ASL qualifier breakthroughs? BSL Season 2025 - Full Overview and Conclusion
Tourneys
[Megathread] Daily Proleagues [BSL21] Non-Korean Championship - Starts Jan 10 Small VOD Thread 2.0 Azhi's Colosseum - Season 2
Strategy
Soma's 9 hatch build from ASL Game 2 Simple Questions, Simple Answers Game Theory for Starcraft Current Meta
Other Games
General Games
Stormgate/Frost Giant Megathread Beyond All Reason Awesome Games Done Quick 2026! Nintendo Switch Thread Mechabellum
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Canadian Politics Mega-thread European Politico-economics QA Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece
Sports
2024 - 2026 Football Thread
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
My 2025 Magic: The Gathering…
DARKING
Physical Exercise (HIIT) Bef…
TrAiDoS
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
James Bond movies ranking - pa…
Topin
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1270 users

The Math Thread - Page 17

Forum Index > General Forum
Post a Reply
Prev 1 15 16 17 18 19 32 Next All
Simberto
Profile Blog Joined July 2010
Germany11716 Posts
December 15 2017 10:34 GMT
#321
And the solution for that question is in Travis post #315 and then further simplified in my post #316. It is basically a slightly more general version of your k²!/k!(k+1). Though it might have gotten lost in the editing of posts while others were talking.

Though i didn't get that +1, might have overseen it somewhere.

The result was n!/k!^(n/k) and only works if k divides n. (Otherwise there is no answer to the question.
Melliflue
Profile Joined October 2012
United Kingdom1389 Posts
December 15 2017 18:20 GMT
#322
On December 15 2017 07:21 travis wrote:
Show nested quote +
On December 15 2017 04:38 Melliflue wrote:
I'm not sure what you want. Is it this?

[image loading]

And then you want to know how many such B there are. Is that right?

If so, then for k = 1 there are no solutions, since the highest number you can pick is B = {n} and that is not big enough.
.


there is a miscommunication here. we make n choose k combinations, but these combinations are of size n/k, not of size k.

so for k = 1, we would a single set of (1,2,3...n) which would be our single solution.

Ah, sorry about that. So in what I wrote, you would need |B| = n/k. As Ciaus_Dronu said, the logic still works. Let j = n/k for convenience. There are n! permutations of 1,...,n. I split that into k blocks, each of size j. I don't care about the order within a block so I must divide by j! for each block, so that gives me (j!)^k. I don't care about the order of the blocks either so I divide by k! too. Final answer is

[image loading]
(I only repeated what Ciaus_Dronu said to add that expression since they had trouble with their latex image.)

I know this is almost what you and Simberto got too, minus a notational difference and a k! in the denominator for whether or not you care about the order of the blocks. I did miss some of the edits, but I wanted to give this explanation because I think it is neater. You get straight to the final answer without needing to simplify anything, and it nicely explains what that final expression means.

I am still thinking about the case where duplicates are allowed. I have not yet seen a simple way to do that.
amyamyamy
Profile Joined November 2017
76 Posts
December 17 2017 21:36 GMT
#323
Hey I was messing around with continued fractions and I came across something I definitely couldnt figure out myself and something Google didnt help me understand either

Basically I was wondering if there exists an elegant way to represent pi as an infinite continued fraction
Simberto
Profile Blog Joined July 2010
Germany11716 Posts
December 17 2017 22:01 GMT
#324
Probably not

Pi is usually weird and there is no simple fractional way of describing it (Aside from silly stuff like Pi/1 )
The_Templar
Profile Blog Joined January 2011
your Country52797 Posts
December 17 2017 22:39 GMT
#325
On December 18 2017 06:36 amyamyamy wrote:
Hey I was messing around with continued fractions and I came across something I definitely couldnt figure out myself and something Google didnt help me understand either

Basically I was wondering if there exists an elegant way to represent pi as an infinite continued fraction

I'm pretty sure there are several based on the wolfram alpha page, in particular these two:
[image loading]
[image loading]
Moderatorshe/her
TL+ Member
amyamyamy
Profile Joined November 2017
76 Posts
Last Edited: 2017-12-17 23:18:16
December 17 2017 23:17 GMT
#326
Oh what I meant is if theres an elegant way to derive a continued fraction representation (simple - or non-simple like your example) of pi.

Obviously one could approximate pi and construct a continued fraction from that approximation but what im wondering is if theres another way to derive CF for pi
Day_Walker
Profile Joined December 2013
104 Posts
December 18 2017 00:55 GMT
#327
I'm not sure it will meet your idea of "elegant", but this page might have what you want:
https://en.wikipedia.org/wiki/Gauss's_continued_fraction

(The application to pi is in this section.)
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2017-12-24 15:09:58
December 24 2017 15:09 GMT
#328
I need to find a summation, and it might be too difficult for me to figure out myself in any reasonable amount of time.
If any of you can figure it out, I would be very, very thankful. So thankful that in the future you may possibly (unlikely, but possible), get compensation.


Say we have a number of elements, n.

I have a target I want to reach: ( [the floor of(n-1)/2] - n - 1)

This needs to be found over a sum of (n-2) steps. No more, no less.
I need it to be distributed such that

1.) the summation uses all (n-2) steps
and
2.) the size of the value being added in an earlier step is never lower than the size of the value being added in a later step
and 3.) the size of the value being added in each step is as uniform as possible.



example:

n = 9
target sum: 22
number of steps: 7

example sum: 4+3+3+3+3+3+3


so, I realize the question might be a little non-specific, so there may be some wiggle room for interpretation. But hopefully it's enough information to garner a good general solution.

thank you!
Ciaus_Dronu
Profile Joined June 2017
South Africa1848 Posts
December 24 2017 15:37 GMT
#329
@travis

Is this what you are aiming for:
--------------------------------------------------------
Given some n positive integer.
[image loading]
(This is weird to me as S will be negative)

You now what to represent S as a summation of n-2 integers.

[image loading]

And the sequence of integers is decreasing, and does not contain 0.

Further, some idea of uniformity is desirable.
--------------------------------------------------------

Are you sure there isn't a typo in your target value? Because it will be negative =/
The_Templar
Profile Blog Joined January 2011
your Country52797 Posts
Last Edited: 2017-12-24 17:21:28
December 24 2017 17:20 GMT
#330
Maybe he meant the floor of (n-1)^2/2, and not (n-1)/2?
Moderatorshe/her
TL+ Member
Ciaus_Dronu
Profile Joined June 2017
South Africa1848 Posts
Last Edited: 2017-12-24 18:57:14
December 24 2017 18:32 GMT
#331
On December 25 2017 02:20 The_Templar wrote:
Maybe he meant the floor of (n-1)^2/2, and not (n-1)/2?


That would make sense with the example given.
So far splitting into cases where n is even / odd, I'm getting somewhere for even. Although it looks by far less technical and annoying than for n odd.

EDIT: Still long and annoying though

EDIT 2: Analysis for n even won't be fun to format here, can I link an online latex document when that's done? It'll only be for the even case unfortunately. Odd will likely take hours T.T
Deleted User 3420
Profile Blog Joined May 2003
24492 Posts
Last Edited: 2017-12-24 19:18:31
December 24 2017 18:56 GMT
#332
Sorry guys, I meant ( [the floor of((n-1)^2)/2] - n - 1)

So, (n-1) is squared.

that's why in my example, with a value of n=9
we do: n-1 = 8. 8^2 = 64. 64/2 = 32. 32-1-n = 22
so our target is 22


again, sorry about the error, I need to check these more closely before I walk away.


edit: just noticed the_templar predicted what I had meant. nice job


edit2:
I'm able to solve it in python(well, one possible solution.. depending on interpretation I think there are more), but I still don't know how to translate it to math, and having the math may make it more likely I can extract useful information to make my algorithm better.

If it's helpful for you, this is the code:

max = ((n-1)**2)/2 - 1 - n
levels = n-2
min = max/levels
other = max-(min*levels)
max = min+1
maxlevels = other
minlevels = levels-other

this gives me a sum where the first "maxlevels" steps are of value "max", and the following "minlevels" steps are of value "min", and these values will vary by only 1
Ciaus_Dronu
Profile Joined June 2017
South Africa1848 Posts
December 24 2017 20:03 GMT
#333
Just fixing a mistake and then I'll put up a solution that easily adapts for all cases!
Fear not ^^
Ciaus_Dronu
Profile Joined June 2017
South Africa1848 Posts
Last Edited: 2017-12-24 20:12:31
December 24 2017 20:07 GMT
#334
Okay here is an overleaf read-only thing you can view. It should let you generate a PDF. It only has the even solution, but I can do the odd one now quickly too.

Overleaf link

EDIT: You can click PDF on the top bar of the screen to get something easier to read.
EDIT 2: Lots of typos, that is a "live" link so I'll fix them as I see them.
Ciaus_Dronu
Profile Joined June 2017
South Africa1848 Posts
Last Edited: 2017-12-24 21:17:37
December 24 2017 20:36 GMT
#335
I'm not able to get this to work nicely for odd case, keep getting a 1/2 term floating around that definitely doesn't work. I've probably done something not clever >.>

EDIT: Solved. For odd numbers greater than 7 anyway (everything smaller you can have as its own case).
I'll put in the solution soon, I just need to shower and then I'll type it up.
Ciaus_Dronu
Profile Joined June 2017
South Africa1848 Posts
Last Edited: 2017-12-24 22:19:05
December 24 2017 22:13 GMT
#336
Done!
If anything is unclear or poorly explained, just say and I'll fix it up.

The link is here again:
Link to read-only text

EDIT:
The conclusion is as follows:
For n even, you want the first (n-5) terms to be n/2 - 1, and the last 3 terms to be n/2 - 2.
For n odd, you want the first (n-1)/2 - 3 terms to be (n-1)/2, and the rest of the terms to be (n-3)/2.

With the steps I have included, it is also easy to spot the special cases where all the terms can be the same and where this can't be done at all, although that's not difficult on its own.
Acrofales
Profile Joined August 2010
Spain18190 Posts
Last Edited: 2018-02-20 19:09:56
February 20 2018 18:56 GMT
#337
Not sure this is math. It's more signal processing, but guess I'll post it here.

I am trying to find useful descriptors for a completely irregular (discrete) time series. And when I say completely irregular, I mean that it looks random, and is made to look even more random after a dfft.
Here's an example:
[image loading]

Every sample produces a series like this one. What I plotted here is the time series, the mean and mean + 1 std deviation for this sample, and mean, and mean +1 std deviation for the entire population. Mean - 1 std deviation is always < 0, so not very useful.

What are useful ways for describing data of this kind of data? Because I am mostly interested in the peaks, their spacing and things, I was thinking of using the following descriptors:

number of peaks > mean + 1 std dev.
height of the highest peak (probably not meaningful data)
%time > mean + 1 std dev.
%time < mean.
max time between peaks.
min time between peaks.

But they seem completely ad-hoc choices. Are there more principled ways of describing a time series with what appears to be no periodical component?

Oh, what I forgot is that I can play with the window. I am now grouping events together by minute, but I can play with the window size, or do a sliding window (not sure what the point of that is in this case, other than to have a smoothing effect). Making the window size too small (10 sec) seems to make it uselessly jittery though. The peaks get broken up into seemingly meaningless rapid peak-vale-peak-vale intervals. 1 minute seems intuitively like a good trade-off between resolution and noise... but if there is a better way of analysing this, that would also help
Kleinmuuhg
Profile Blog Joined September 2010
Vanuatu4091 Posts
February 22 2018 20:40 GMT
#338
Hey, seeing as no one else gave you an answer I thought I might add something. If I understand you correctly then as your sample points are seemingly random then there is no correlation to the time points, so why not leave time out of it an treat them as 1-dimensional samples. A good way of presenting such samples would be a box plot, which includes all statistical metrics commonly used.
This is our town, scrub
Joni_
Profile Joined April 2011
Germany355 Posts
Last Edited: 2018-02-23 14:35:20
February 23 2018 14:34 GMT
#339
Random pure maths question:

What are sufficient conditions on a Banach Algebra to guarantee that an element whose spectrum is a subset of {0,1} is a projection, i.e., self-adjoint and idempotent?

The Algebra being a C*-Algebra is certainly sufficient, but I'm specifically looking for weaker conditions, because C* is not guaranteed in my case.
KR_4EVR
Profile Joined July 2017
316 Posts
February 23 2018 23:40 GMT
#340
On December 18 2017 08:17 amyamyamy wrote:
Oh what I meant is if theres an elegant way to derive a continued fraction representation (simple - or non-simple like your example) of pi.

Obviously one could approximate pi and construct a continued fraction from that approximation but what im wondering is if theres another way to derive CF for pi


There is (unlike what is suggested by the uneducated people who have told you otherwise). But to understand it you would have needed to have deep understanding of jacobi theta functions.

However, I can give you a cleaner way.

Remember arctan(1)=Pi/4, right?
but also, arctan(x) = x - x^3/3+x^5/5-x^7/7+x^9/9 - ....
so you can write:

PI = 4 x (1-1/3 +1/5 -1/7 +1/9-1/11+1/13-...... )

Many other series of simmilar type abound. The best are in base 8 and base 16, though. The best one is called the BBP digit extraction algorithm because it literally allows you to finish computing one digit at a time before you have everything (think: base 16 more dense than base 10) It reads:

PI = Sum over k from zero to infinity 1/16^k * [ 4/(8k+1)- 2/(8k+4) -1/(8k+5)-1/(8k+6)]

Note that these aren't "magic numbers". They come from modular rings in base 17.
Et tu Brute ?
Prev 1 15 16 17 18 19 32 Next All
Please log in or register to reply.
Live Events Refresh
All-Star Invitational
03:00
Day 2
herO vs SolarLIVE!
Clem vs Reynor
Rogue vs Oliveira
WardiTV1172
PiGStarcraft690
EnkiAlexander 109
3DClanTV 53
IntoTheiNu 12
LiquipediaDiscussion
AI Arena Tournament
20:00
Swiss - Round 2
Laughngamez YouTube
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
PiGStarcraft690
WinterStarcraft543
RuFF_SC2 144
IndyStarCraft 90
BRAT_OK 85
StarCraft: Brood War
Britney 18329
EffOrt 118
Shuttle 79
Noble 32
ajuk12(nOOB) 22
Models 19
Icarus 9
Dota 2
monkeys_forever153
febbydoto42
LuMiX0
League of Legends
JimRising 745
C9.Mang0512
Super Smash Bros
Mew2King31
Other Games
summit1g7549
KnowMe714
minikerr22
Organizations
Other Games
gamesdonequick1854
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Hupsaiya 75
• AfreecaTV YouTube
• intothetv
• Kozan
• sooper7s
• IndyKCrew
• LaughNgamezSOOP
• Migwel
StarCraft: Brood War
• RayReign 60
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Stunt431
Other Games
• Scarra1074
Upcoming Events
Sparkling Tuna Cup
5h 4m
OSC
7h 4m
Shameless vs NightMare
YoungYakov vs MaNa
Nicoract vs Jumy
Gerald vs TBD
Creator vs TBD
BSL 21
15h 4m
Bonyth vs Sziky
Mihu vs QiaoGege
Sziky vs XuanXuan
eOnzErG vs QiaoGege
Mihu vs DuGu
Dewalt vs Bonyth
IPSL
15h 4m
Dewalt vs Sziky
Replay Cast
1d 4h
Wardi Open
1d 7h
Monday Night Weeklies
1d 12h
The PondCast
3 days
Big Brain Bouts
5 days
Serral vs TBD
BSL 21
6 days
Liquipedia Results

Completed

Escore Tournament S1: W4
Big Gabe Cup #3
NA Kuram Kup

Ongoing

C-Race Season 1
IPSL Winter 2025-26
BSL 21 Non-Korean Championship
CSL 2025 WINTER (S19)
KCM Race Survival 2026 Season 1
OSC Championship Season 13
SC2 All-Star Inv. 2025
Underdog Cup #3
BLAST Bounty Winter Qual
eXTREMESLAND 2025
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025

Upcoming

Escore Tournament S1: W5
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
Rongyi Cup S3
Nations Cup 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League Season 23
ESL Pro League Season 23
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.