Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.math > #330351

Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero

From R Kym Horsell <kym@kymhorsell.com>
Newsgroups sci.math
Subject Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero
Date 2016-03-23 08:11 +0000
Organization SDF Public Access UNIX System, Est. 1987
Message-ID <nctj2l$i8p$1@odin.sdf-eu.org> (permalink)
References <nct4qr$ud2$1@dont-email.me> <ncthmt$sae$1@dont-email.me>

Show all headers | View raw


David Bernier <david250@videotron.ca> wrote:
> On 03/23/2016 12:11 AM, David Bernier wrote:
>> Supposing I write a series of integers between 0 and 99999 inclusive
>> using the decimal digits of pi, like this:
>> 
>> 14159
>> 26535
>> 89793
>> 23846
>> 26433
>> 83279
>> 50288
>> 41971
>> 69399
>> 37510
>> etc.
>> 
>> Then I find that by adding multipliers of either +1 or -1 in front of
>> each block of 5 digits, I can obtain a total sum of zero using the
>> first 20 blocks of 5 digits like so:
>> 
>> 14159-26535+89793+23846-26433-83279+50288-41971+69399+37510+58209+74944-59230-78164+
>> 6286-20899-86280+34825+34211-70679
>> 
>> total = 0 .
>> 
>> Note: 6286, which comes from the 5-digit block
>> "06286", is a 4-digit integer.
>> 
>> Pi digits at Wikipedia:
>> < https://en.wikipedia.org/wiki/Six_nines_in_pi > .
>> 
>> It's related to the so-called Number Partition Problem
>> in complexity theory, otherwise known as the
>> partition problem:
>> 
>> < https://en.wikipedia.org/wiki/Partition_problem > ,
>> 
>> Brian Hayes, AMERICAN SCIENTIST, 2002:
>> 
>> < http://www.americanscientist.org/issues/pub/the-easiest-hard-problem > .
>> 
>> If c_k denotes the integer formed in the canonical way
>> from the k'th block of 5 digits of pi after "3.", for k>= 1,
>> i.e.
>> c_1, c_2, c_3, c_4,  ....  =
>> 14159, 26535, 89793, 23846, ....
>> 
>> then for 16<=k <= 19 I haven't found any sign assignments, + and - ,
>> for the length 'k' sequence c1, ... c_k yielding a sum of zero.
>> 
>> I haven't checked-out 3<= k <= 15 .
>> 
>> David Bernier
>> 
> 
> For integers, similarly, from blocks of 6 digits:
> 
> 141592+653589-793238-462643-383279+502884-197169+399375-105820-974944+592307+816406+286208-998628- 34825+342117+ 67982+148086
> 
> total = 0 ,
> with 18 blocks of 6 digits of pi starting with
> 141592  and consecutively.
> 
> The last, or 148086, conmprises digits after the decimal point 103 to 108.


There are apparently 2 solutions.

Here is a little Prolog program to play with your blocks.

== snip ===

%% list of "blocks"
list([141592,653589,793238,462643,383279,502884,197169,399375,105820,974944,592307,816406,286208,998628, 34825,342117, 67982,148086]).


%% how to add blocks
%% sum(Sumin,List,Result).
sum(Inp,[],Inp).	%% Result == Inp
sum(Inp,[X|Xs],Outp) :-
sum(Inp,Xs,Temp),
%% can either add or subtract X
(
Outp is Temp + X
;
Outp is Temp - X
).


:- list(Nums), sum(0,Nums,Outp), Outp=0.	%% can we find a solution?

% sum(Sumin,List,Sum,HowIn,HowOut).
sum(Inp,[],Inp,How,How).	%% Sum == Inp
sum(Inp,[X|Xs],Sum,Howin,Howout) :-
sum(Inp,Xs,Temp,Howin,Howmid),
%% can either add or subtract X
(
Sum is Temp + X, Howout = [(+)|Howmid]
;
Sum is Temp - X, Howout = [(-)|Howmid]
).

:- writeln(first).
:- list(Nums), 
sum(0,Nums,Sum,[],How), 
Sum=0,
writeln(How).	%% show me!

%%% show me them all
:- writeln(all).
:- list(Nums), 
sum(0,Nums,Sum,[],How), 
Sum=0,
writeln(How),	%% show me!
fail
; 
true.

=== end snip ===

Here is the logfile from the run of the above "script":

=== snip ===
first
[+,+,-,-,-,+,-,+,-,-,+,+,+,-,-,+,+,+]
all
[+,+,-,-,-,+,-,+,-,-,+,+,+,-,-,+,+,+]
[-,-,+,+,+,-,+,-,+,+,-,-,-,+,+,-,-,-]
=== end ===

--
In the days when Sussman was a novice Minsky once came to him as he sat
hacking at the PDP-6.  "What are you doing?", asked Minsky.  "I am
training a randomly wired neural net to play Tic-Tac-Toe."  "Why is the
net wired randomly?", asked Minsky.  "I do not want it to have any
preconceptions of how to play." Minsky shut his eyes.  "Why do you
close your eyes?", Sussman asked his teacher.  "So the room will be
empty."  At that moment, Sussman was enlightened.

Back to sci.math | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero David Bernier <david250@videotron.ca> - 2016-03-23 00:11 -0400
  Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero David Bernier <david250@videotron.ca> - 2016-03-23 03:50 -0400
    Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero R Kym Horsell <kym@kymhorsell.com> - 2016-03-23 08:11 +0000
      Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero David Bernier <david250@videotron.ca> - 2016-03-23 05:07 -0400
        Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero R Kym Horsell <kym@kymhorsell.com> - 2016-03-23 10:12 +0000
          Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero abu.kuanysh05@gmail.com - 2016-03-23 08:31 -0700
        Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-03-23 17:21 +0000
  Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-03-23 16:20 +0000
    Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-03-23 16:29 +0000
      Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero abu.kuanysh05@gmail.com - 2016-03-23 17:51 -0700
      Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero David Bernier <david250@videotron.ca> - 2016-03-24 01:06 -0400
    Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-03-23 17:10 +0000
      Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero David Bernier <david250@videotron.ca> - 2016-03-24 04:42 -0400
        Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-03-24 08:51 +0000
  Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero David Bernier <david250@videotron.ca> - 2016-03-23 15:29 -0400
    Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero R Kym Horsell <kym@kymhorsell.com> - 2016-03-24 03:33 +0000
      Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero David Bernier <david250@videotron.ca> - 2016-03-24 00:47 -0400
        Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero R Kym Horsell <kym@kymhorsell.com> - 2016-03-24 05:54 +0000
      Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-03-24 08:46 +0000
        Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero R Kym Horsell <kym@kymhorsell.com> - 2016-03-24 09:54 +0000
          Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-03-24 11:00 +0000
            Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero R Kym Horsell <kym@kymhorsell.com> - 2016-03-24 11:58 +0000
          Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-03-24 11:08 +0000
            Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero R Kym Horsell <kym@kymhorsell.com> - 2016-03-24 19:02 +0000
            Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero Barry Schwarz <schwarzb@dqel.com> - 2016-03-24 14:05 -0700
  Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero David Bernier <david250@videotron.ca> - 2016-03-24 00:56 -0400
    Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero djoyce099 <hlauk.h.bogart@gmail.com> - 2016-03-24 11:06 -0700
      Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero djoyce099 <hlauk.h.bogart@gmail.com> - 2016-03-24 15:42 -0700
        Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero djoyce099 <hlauk.h.bogart@gmail.com> - 2016-03-24 17:46 -0700
  Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero richard@cogsci.ed.ac.uk (Richard Tobin) - 2016-03-24 14:44 +0000
    Re: signed sums of consecutive blocks of 5 decimal digits from Pi summing to zero David Bernier <david250@videotron.ca> - 2016-03-25 03:06 -0400

csiph-web