summaryrefslogtreecommitdiff
path: root/scripts/math
diff options
context:
space:
mode:
authorpants <niklasjo2004@gmail.com>2026-09-21 14:17:03 -0700
committerpants <niklasjo2004@gmail.com>2026-09-21 14:17:03 -0700
commit7b21727285e50b0b050c4ddd70d07542229c5366 (patch)
tree5d369153c5df5b41f3750d25479a68f20169c8ff /scripts/math
init
Diffstat (limited to 'scripts/math')
-rwxr-xr-xscripts/math10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/math b/scripts/math
new file mode 100755
index 0000000..897d7fe
--- /dev/null
+++ b/scripts/math
@@ -0,0 +1,10 @@
+#!/bin/bash
+POWER_SET="{{} {1} {2} {3} {4} {1,2} {1,3} {1,4} {2,3} {2,4} {3,4} {1,2,3} {1,2,4} {1,3,4} {2,3,4} {1,2,3,4}}"
+SUBSETS="1 2 3 4"
+for element in $POWER_SET; do
+ for sub in $SUBSETS; do
+ if [[ $element == *$sub* ]]; then
+ echo "element containing $sub: $element"
+ fi
+ done
+done