This commit is contained in:
2026-02-04 23:34:37 -08:00
parent e5c037ec76
commit 49829b6c0a
2 changed files with 10 additions and 77 deletions

10
scripts/math Executable file
View File

@@ -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