• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:03
CEST 00:03
KST 07:03
  • 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
Serral wins Maestros of the Game 226ByuL, and the Limitations of Standard Play3Team Liquid Map Contest #22: Results and Winners7Code S Season 2 (2026): RO4 and Finals Preview12TL.net Map Contest #22 - Voting & Ladder Map Selection7
Community News
Weekly Cups (June 29-July 5): Solar Doubles0MC vs IdrA, Boxer vs Nal_rA to be Legacy Matches @ BlizzCon415.0.16 Hotfix (June 30) - Balance + Bug Fixes40Weekly Cups (June 22-28): Zergs thrive in new patch5[TLMC] Summer 2026 Ladder Map Rotation0
StarCraft 2
General
Is the larve respawn broken? 5.0.16 patch for SC2 goes live (8 worker start) 5.0.16 Hotfix (June 30) - Balance + Bug Fixes Weekly Cups (June 29-July 5): Solar Doubles MC vs IdrA, Boxer vs Nal_rA to be Legacy Matches @ BlizzCon
Tourneys
Crank Gathers Season 4: BW vs SC2 Team League GSL CK #5 Race War HomeStory Cup 29 RSL Revival: Season 6 - Qualifiers and Main Event Vespene Cup #1 — $300+ USD, July 10
Strategy
[G] Having the right mentality to improve
Custom Maps
New Map Maker - Looking for Advice - Love or Hate Work In Progress Melee Maps [D]RTS in all its shapes and glory <3
External Content
Mutation # 533 Die Together The PondCast: SC2 News & Results Mutation # 532 Nuclear Family Mutation # 531 Experimental Artillery
Brood War
General
BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion Starcraft vs Retro Category on Twitch Data needed Snow On New ASL S22 Map, Zerg Nerf
Tourneys
CSLAN 4 is Coming! Escore Tournament StarCraft Season 2 The Casual Games of the Week Thread [Megathread] Daily Proleagues
Strategy
Simple Questions, Simple Answers Creating a full chart of Zerg builds Relatively freeroll strategies Why doesn't anyone use restoration?
Other Games
General Games
Dawn of War IV Summer Games Done Quick 2026! Nintendo Switch Thread Stormgate/Frost Giant Megathread ZeroSpace at Steam NextFest - Last free demo
Dota 2
Looking for a Dota Mentor 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
TL Mafia
NeO.D_StephenKing vs This Guy From 1 Million Dance TL Mafia Community Thread TL Mafia Power Rank Vanilla Mini Mafia
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread UK Politics Mega-thread YouTube Thread Canadian Politics Mega-thread
Fan Clubs
The HerO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! Series you have seen recently... [Req][Books] Good Fantasy/SciFi books [TV/BOOK] *SPOILERS* Game of Thrones Discussion
Sports
2024 - 2026 Football Thread Tennis[sport] Formula 1 Discussion McBoner: A hockey love story TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
FPS when play League Of Legend on laptop How to clean a TTe Thermaltake keyboard? Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Major Shifts in the Gaming I…
TrAiDoS
An Exploration of th…
waywardstrategy
I'm an arrogant trash talke…
FlaShFTW
Gauntlet SC2: A Retrospectiv…
Ctone23
ramps on octagon
StaticNine
Funny Nicknames
LUCKY_NOOB
Customize Sidebar...

Website Feedback

Closed Threads



Active: 6205 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
Germany11919 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
Germany11919 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 Country52798 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]
ModeratorI am still alive, somehow
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 Country52798 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?
ModeratorI am still alive, somehow
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
Spain18356 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
Next event in 10h 57m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ViBE157
Nina 124
ZombieGrub124
FoxeR 81
StarCraft: Brood War
Artosis 88
Dota 2
LuMiX1
Counter-Strike
fl0m1512
Super Smash Bros
Mew2King88
Other Games
Grubby2988
shahzam580
C9.Mang0311
ToD233
UpATreeSC50
Organizations
Other Games
gamesdonequick39515
BasetradeTV282
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
[ Show 15 non-featured ]
StarCraft 2
• musti20045 46
• davetesta23
• Psz 6
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota2613
Other Games
• imaqtpie974
Upcoming Events
Replay Cast
10h 57m
CrankTV Team League
12h 57m
OSC
18h 57m
Replay Cast
1d 1h
Replay Cast
1d 10h
CrankTV Team League
1d 12h
OSC
1d 14h
Replay Cast
2 days
RSL Revival
2 days
Serral vs Bunny
ByuN vs GgMaChine
CranKy Ducklings
2 days
[ Show More ]
Afreeca Starleague
2 days
Snow vs Jaedong
YSC vs hero
RSL Revival
3 days
Solar vs Rogue
Maru vs NightMare
Sparkling Tuna Cup
3 days
GSL
4 days
Replay Cast
5 days
WardiTV Weekly
5 days
The PondCast
6 days
Liquipedia Results

Completed

CSL Season 21: Qualifier 2
HSC XXIX
Eternal Conflict S2 E1

Ongoing

IPSL Spring 2026
Acropolis #4
YSL S3
CSL 2026 Summer (S21)
SCTL 2026 Spring
XSE Pro League 2026
IEM Cologne Major 2026
Stake Ranked Episode 2
CS Asia Championships 2026
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026

Upcoming

Escore Tournament S3: W2
ASL Season 22: Wild Card Qualifier
CSLAN 4
Blizzard Classic Cup 2026
SC4ALL II: StarCraft II
Kung Fu Cup 2026 Grand Finals
RSL Revival: Season 6
CranK Gathers Season 4: BW vs SC2 Team League
Light Tournament 2026
Eternal Conflict S2 Finale
Eternal Conflict S2 E3
Eternal Conflict S2 E2
Heroes Pulsing #3
Logitech G Connect 2026
StarSeries Fall 2026
FISSURE Playground #5
BLAST Open Fall 2026
Esports World Cup 2026
BLAST Bounty Summer 2026
BLAST Bounty Summer Qual
Stake Ranked Episode 3
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.