• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:35
CEST 17:35
KST 00:35
  • 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
[ASL21] Ro24 Preview Pt2: News Flash10[ASL21] Ro24 Preview Pt1: New Chaos0Team Liquid Map Contest #22 - Presented by Monster Energy18ByuL: The Forgotten Master of ZvT30Behind the Blue - Team Liquid History Book20
Community News
$5,000 WardiTV TLMC tournament - Presented by Monster Energy2GSL CK: More events planned pending crowdfunding2Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win0[BSL22] RO32 Group Stage4Weekly Cups (March 23-29): herO takes triple6
StarCraft 2
General
BGE Stara Zagora 2026 cancelled Blizzard Classic Cup @ BlizzCon 2026 - $100k prize pool Weekly Cups (May 30-Apr 5): herO, Clem, SHIN win Rongyi Cup S3 - Preview & Info Team Liquid Map Contest #22 - Presented by Monster Energy
Tourneys
GSL CK: More events planned pending crowdfunding $5,000 WardiTV TLMC tournament - Presented by Monster Energy Sparkling Tuna Cup - Weekly Open Tournament RSL Season 4 announced for March-April Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
[D]RTS in all its shapes and glory <3 [A] Nemrods 1/4 players [M] (2) Frigid Storage
External Content
The PondCast: SC2 News & Results Mutation # 520 Moving Fees Mutation # 519 Inner Power Mutation # 518 Radiation Zone
Brood War
General
so ive been playing broodwar for a week straight. Gypsy to Korea ASL21 General Discussion Pros React To: JaeDong vs Queen [BSL22] RO32 Group Stage
Tourneys
[Megathread] Daily Proleagues [BSL22] RO32 Group B - Sunday 21:00 CEST [BSL22] RO32 Group A - Saturday 21:00 CEST 🌍 Weekly Foreign Showmatches
Strategy
Muta micro map competition Fighting Spirit mining rates What's the deal with APM & what's its true value Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Starcraft Tabletop Miniature Game General RTS Discussion Thread Nintendo Switch Thread Darkest Dungeon
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
G2 just beat GenG in First stand
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
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread Five o'clock TL Mafia
Community
General
US Politics Mega-thread Trading/Investing Thread Things Aren’t Peaceful in Palestine European Politico-economics QA Mega-thread Canadian Politics Mega-thread
Fan Clubs
The IdrA Fan Club
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion Cricket [SPORT] Tokyo Olympics 2021 Thread General nutrition recommendations
World Cup 2022
Tech Support
[G] How to Block Livestream Ads
TL Community
The Automated Ban List
Blogs
Loot Boxes—Emotions, And Why…
TrAiDoS
Broowar part 2
qwaykee
Funny Nicknames
LUCKY_NOOB
Iranian anarchists: organize…
XenOsky
FS++
Kraekkling
ASL S21 English Commentary…
namkraft
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2638 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
Germany11796 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
Germany11796 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
Spain18257 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 8h 25m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Hui .330
LamboSC2 162
ProTech123
trigger 90
Codebar 3
StarCraft: Brood War
Calm 4887
Jaedong 4636
Sea 2796
Bisu 2697
EffOrt 605
Mini 566
Light 541
firebathero 468
ZerO 457
Pusan 425
[ Show more ]
Stork 360
Snow 345
Soulkey 260
Rush 247
actioN 241
ggaemo 194
Hyuk 180
NaDa 122
hero 119
Sharp 110
Dewaltoss 75
Backho 68
Nal_rA 67
Sea.KH 65
sorry 58
Aegong 49
Shinee 45
HiyA 45
Leta 44
Hyun 44
Barracks 40
JYJ 40
GoRush 35
scan(afreeca) 34
JulyZerg 30
Rock 24
IntoTheRainbow 12
SilentControl 8
ajuk12(nOOB) 7
Dota 2
Gorgc7392
qojqva1691
syndereN323
Counter-Strike
fl0m3574
x6flipin422
byalli327
edward87
kRYSTAL_13
Other Games
gofns17336
Liquid`RaSZi1251
B2W.Neo795
FrodaN234
Livibee174
QueenE126
ArmadaUGS110
KnowMe92
XaKoH 86
Mew2King38
Trikslyr25
ZerO(Twitch)13
Organizations
Counter-Strike
PGL26551
Other Games
BasetradeTV1479
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• poizon28 28
• Kozan
• sooper7s
• AfreecaTV YouTube
• intothetv
• Migwel
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• HerbMon 6
• Azhi_Dahaki5
• Michael_bg 1
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• WagamamaTV472
League of Legends
• Nemesis4181
• TFBlade1256
Other Games
• Shiphtur17
Upcoming Events
CranKy Ducklings
8h 25m
WardiTV Team League
19h 25m
CranKy Ducklings
1d 18h
WardiTV Team League
1d 19h
uThermal 2v2 Circuit
1d 23h
BSL
2 days
n0maD vs perroflaco
TerrOr vs ZZZero
MadiNho vs WolFix
DragOn vs LancerX
Sparkling Tuna Cup
2 days
WardiTV Team League
2 days
OSC
2 days
BSL
3 days
Sterling vs Azhi_Dahaki
Napoleon vs Mazur
Jimin vs Nesh
spx vs Strudel
[ Show More ]
Replay Cast
3 days
Replay Cast
3 days
Wardi Open
3 days
GSL
4 days
Replay Cast
5 days
Kung Fu Cup
5 days
Replay Cast
6 days
The PondCast
6 days
Liquipedia Results

Completed

CSL Elite League 2026
RSL Revival: Season 4
NationLESS Cup

Ongoing

BSL Season 22
ASL Season 21
CSL 2026 SPRING (S20)
StarCraft2 Community Team League 2026 Spring
Nations Cup 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026

Upcoming

Escore Tournament S2: W2
IPSL Spring 2026
Escore Tournament S2: W3
Acropolis #4
BSL 22 Non-Korean Championship
CSLAN 4
Kung Fu Cup 2026 Grand Finals
HSC XXIX
uThermal 2v2 2026 Main Event
RSL Revival: Season 5
WardiTV TLMC #16
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
CCT Season 3 Global Finals
IEM Rio 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.