Posts

Showing posts from February 2, 2019

Scraping data from PDF using R

Image
2 I'd like to extract data (ski jumpping) from this PDF http://medias4.fis-ski.com/pdf/2019/JP/3088/2019JP3088RL.pdf I'm interested in every data except bib , club and date of birth I was trying with pdftools library pdf_text("raw/data.pdf") %>% strsplit(split = "n") and I stuck here. The problem is that column points (gate compensation) sometimes is empty and sometimes it's not. I don't know how to handle that. My desired output is something like that: Rank|Athlete |Nation|(...)|Jump_1|Round_1|Jump_2|Round_2|Tot_points 1 |KLIMOV Evgeniy|RUS |(...)|127.5 |130 |131.5 |133.4 |263.4 Anyone may help me? r pdf web-scraping screen-scraping sha

Find, with proof, the largest natural number k such that 10^k divides 100! (one hundred factorial).

Image
-1 $begingroup$ I was able to get to a theorem saying "that a|b if and only if for any prime in the factorization of a or b, its exponent in the factorization of a is less than or equal to its exponent in the factorization of b." I tried to use this theorem where k <= m, k <= n, where m and n are exponents of 2 and 5, respectively, in the factorization of 100! but I was not able to work out the math so far. Any help will be greatly appreciated! divisibility share | cite | improve this question edited Nov 28 '18 at 21:56 amWhy 1