• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 18:18
CEST 00:18
KST 07:18
  • 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
RSL Season 1 - Final Week6[ASL19] Finals Recap: Standing Tall15HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0
Community News
Esports World Cup 2025 - Brackets Revealed19Weekly Cups (July 7-13): Classic continues to roll8Team TLMC #5 - Submission extension3Firefly given lifetime ban by ESIC following match-fixing investigation17$25,000 Streamerzone StarCraft Pro Series announced7
StarCraft 2
General
Who will win EWC 2025? Geoff 'iNcontroL' Robinson has passed away Program: SC2 / XSplit / OBS Scene Switcher Why doesnt SC2 scene costream tournaments RSL Revival patreon money discussion thread
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament Sea Duckling Open (Global, Bronze-Diamond) FEL Cracov 2025 (July 27) - $8000 live event RSL: Revival, a new crowdfunded tournament series $5,100+ SEL Season 2 Championship (SC: Evo)
Strategy
How did i lose this ZvP, whats the proper response
Custom Maps
External Content
Mutation # 483 Kill Bot Wars Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame
Brood War
General
BW General Discussion Corsair Pursuit Micro? BGH Auto Balance -> http://bghmmr.eu/ Pro gamer house photos Flash Announces (and Retracts) Hiatus From ASL
Tourneys
BWCL Season 63 Announcement CSL Xiamen International Invitational [Megathread] Daily Proleagues 2025 ACS Season 2 Qualifier
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
[MMORPG] Tree of Savior (Successor of Ragnarok) Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread CCLP - Command & Conquer League Project
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The Games Industry And ATVI Stop Killing Games - European Citizens Initiative
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion [\m/] Heavy Metal Thread
Sports
2024 - 2025 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Ping To Win? Pings And Their…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Customize Sidebar...

Website Feedback

Closed Threads



Active: 707 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
Germany11504 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
Germany11504 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
Spain17979 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
Germany352 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 1d 11h
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
CosmosSc2 124
JuggernautJason105
StarCraft: Brood War
firebathero 247
Aegong 29
Dota 2
monkeys_forever17
League of Legends
Grubby6278
Dendi1160
Counter-Strike
fl0m2396
Stewie2K1027
Super Smash Bros
hungrybox1961
Heroes of the Storm
Liquid`Hasu525
Other Games
tarik_tv26411
gofns15476
summit1g11032
FrodaN3501
shahzam442
ToD267
Maynarde35
Organizations
Other Games
gamesdonequick2236
BasetradeTV23
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 18 non-featured ]
StarCraft 2
• Hupsaiya 47
• davetesta42
• musti20045 41
• sitaska32
• RyuSc2 27
• LaughNgamezSOOP
• intothetv
• Kozan
• IndyKCrew
• AfreecaTV YouTube
• sooper7s
• Migwel
StarCraft: Brood War
• blackmanpl 91
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
Dota 2
• Ler101
Other Games
• imaqtpie2115
Upcoming Events
Esports World Cup
1d 11h
ByuN vs Astrea
Lambo vs HeRoMaRinE
Clem vs TBD
Solar vs Zoun
SHIN vs Reynor
Maru vs TriGGeR
herO vs Lancer
Cure vs ShoWTimE
Esports World Cup
2 days
Esports World Cup
3 days
Esports World Cup
4 days
CranKy Ducklings
5 days
BSL20 Non-Korean Champi…
5 days
BSL20 Non-Korean Champi…
5 days
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
FEL
6 days
BSL20 Non-Korean Champi…
6 days
BSL20 Non-Korean Champi…
6 days
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Liquipedia Results

Completed

2025 ACS Season 2
RSL Revival: Season 1
Murky Cup #2

Ongoing

Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
CC Div. A S7
Underdog Cup #2
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
BSL Season 21
RSL Revival: Season 2
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
Esports World Cup 2025
HCC Europe
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
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 © 2025 TLnet. All Rights Reserved.